react-native-live-markdown
react-native-live-markdown copied to clipboard
Parsing error in codeblock with some characters in the same line after opening triple backticks
[react-native-live-markdown] Parsing error: the processed text does not match the original Markdown input. This may be caused by incorrect parsing functions or invalid input Markdown.
Processed input: '"```\nfoo\n```"'
Original input: '"```a\nfoo\n```"', js engine: reanimated
https://github.com/user-attachments/assets/9796f2b3-1e53-44dd-8453-682af241609e
Yo 👋 consulted with @BartoszGrajdek on this one, and we came to the conclusion that his PR for codeblocks (https://github.com/Expensify/react-native-live-markdown/pull/456) will solve this bug.
I verified that I do not get this on his branch.
Quick summary of supported codeblocks syntax:
standard codeblock works
we won't allow any text before codeblock opening markup
we won't allow any text directly after codeblock opening markup
However the two examples do not produce any JS errors, so I hope this will solve the issue.