atom / markdown-preview

📝 Markdown preview in Atom
MIT License
1.23k stars 357 forks source link

a markdown document with tag <pre> can't convert into HTML! #605

Open 0-0000 opened 1 year ago

0-0000 commented 1 year ago

What a terriable bug! The bug means that if a markdown document which will be converted into HTML can't use code chuck such as <pre> tag!

Prerequisites

Description

I found that a markdown document with tag <pre> can preview correctly, but when I try to convert it into html, nothing happened.

I'm worried about the bug, because my markdown documents have many code examples and I have to convert the document into HTML.

Here are some examples:

<!-- if a markdown document have these contents, it can't convert into HTML -->

<pre></pre>

    line 1
    line 2

\```
example code
line 1
line 2
\```

\```lua
print("What a terrable bug!")
\```

I think you know the meaning about \```.

Steps to Reproduce

Expected behavior:
Actual behavior:
Reproduces how often:

Versions

Additional Information