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

Strange parsing issue with <pre><code> #549

Open
EhsanKia opened this issue Jun 6, 2018 · 1 comment
Open

Strange parsing issue with <pre><code> #549

EhsanKia opened this issue Jun 6, 2018 · 1 comment
Assignees
Labels

Comments

@EhsanKia
Copy link

EhsanKia commented Jun 6, 2018

Not sure if this is a parsing bug, could anyone confirm?

Try the follow in http://demo.showdownjs.com/

<pre><code>test1</code></pre>
a<pre><code>test2</code></pre>

And then

<pre><code>test1</code></pre>
a<pre><code>test2
</code></pre>

The latter gets parsed wrong. Is that normal?

@EhsanKia EhsanKia changed the title Strange parsing issue with <pre><code>? Strange parsing issue with <pre><code> Jun 6, 2018
@tivie tivie self-assigned this Jun 27, 2018
@tivie
Copy link
Member

tivie commented Jun 27, 2018

Yes, this is a limitation of showdown's HTML pre-code block parser, for performance reasons.

I'm not sure if we can "fix" this without hindering performance too much. But I will leave it open and pending for v2.0

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

No branches or pull requests

3 participants