We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 538b3df commit ee9e486Copy full SHA for ee9e486
packages/react-native-sdk/src/markdown/utils/generateMarkdownText.ts
@@ -119,7 +119,7 @@ export const generateMarkdownText = (text?: string) => {
119
120
// Always replace \n``` with \n\n``` to force the markdown state machine to treat it as a separate block. Otherwise, code blocks inside of list
121
// items for example were broken. We clean up the code block closing state within the rendering itself.
122
- resultText = resultText.replace(/\n```/g, '\n\n```');
+ resultText = resultText.replace(/\n```/g, '\n\n```\n');
123
124
return resultText;
125
};
0 commit comments