Skip to content

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

Description

@tomekzaw
[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

Activity

  1. changed the title [-]Parsing error in codeblock[/-] [+]Parsing error in codeblock with some characters in the same line after opening triple backticks[/+] on Dec 10, 2024
  2. Kicu commented on Dec 11, 2024

    @Kicu
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions