Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error in codeblock with some characters in the same line after opening triple backticks #571

Open
tomekzaw opened this issue Dec 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tomekzaw
Copy link
Collaborator

tomekzaw commented Dec 7, 2024

[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
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-12-07.at.12.35.08.mp4
@tomekzaw tomekzaw added the bug Something isn't working label Dec 7, 2024
@tomekzaw tomekzaw changed the title Parsing error in codeblock Parsing error in codeblock with some characters in the same line after opening triple backticks Dec 10, 2024
@Kicu
Copy link

Kicu commented Dec 11, 2024

Yo 👋
consulted with @BartoszGrajdek on this one, and we came to the conclusion that his PR for codeblocks (#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

Screenshot 2024-12-11 at 13 08 16

we won't allow any text before codeblock opening markup

Screenshot 2024-12-11 at 13 08 22

we won't allow any text directly after codeblock opening markup

Screenshot 2024-12-11 at 13 08 30

However the two examples do not produce any JS errors, so I hope this will solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants