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

Line breaks not always appearing in rendered output #195

Open
RobertStanyon opened this issue Jul 20, 2022 · 0 comments
Open

Line breaks not always appearing in rendered output #195

RobertStanyon opened this issue Jul 20, 2022 · 0 comments
Assignees

Comments

@RobertStanyon
Copy link

As of 1.0.74, line breaks in the markdown source are not always resulting in line breaks appearing in the rendered output. The rendered output of

      <MathpixLoader>
        <MathpixMarkdown text={"<span class=\"\">a</span>\n\n<span class=\"\">b</span>"} />
        <hr/>
        <MathpixMarkdown text={"<span class=''>a</span>\n\n<span class=''>b</span>"} />
        <hr/>
        <MathpixMarkdown text={"<span class=\"\">a</span>\n\n<span class=\"\">b</span>"} htmlTags />
        <hr/>
        <MathpixMarkdown text={"<span class=''>a</span>\n\n<span class=''>b</span>"} htmlTags />
      </MathpixLoader>

has changed from the 1.0.73 output:
image

to the 1.0.74+ output:
image

when rendered using the react app example provided at https://github.com/Mathpix/mathpix-markdown-it/tree/master/examples/react-app/use-components.

It seems to be specific to having a span with a class which uses double quotes for the class, but does not depend on whether the span tag is actually rendered as HTML or not (i.e. whether the htmlTags option is set).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants