mjbvz / vscode-github-markdown-preview-style

VS Code extension that changes the built-in markdown preview to match Github's styling
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-preview-github-styles
MIT License
303 stars 57 forks source link

Line breaks in HTML exit it while should not #45

Closed Xeverous closed 2 years ago

Xeverous commented 5 years ago

Example source file

<table>
<tr>
<th>example</th>
</tr>
<tr>

<td>
<pre>
code
{
        indented code

    indented code after a line break
}
</pre>
</td>

</tr>
</table>

Generated preview:

code
{
        indented code

 indented code after a line break
}

It seems that line breaks between HTML code terminate it completely, the text "indented code after a line break" is not even displayed in monospaced font - after the line break everything is treated as regular markdown text.

The problematic are https://github.github.com/gfm/#html-blocks rule 1 and 6 - line breaks do stop or don't stop HTML depending on how they were opened

mjbvz commented 2 years ago

This extension only handles styling the markdown preview, it doesn't change how the markdown is parsed so I don't think this in scope for this extension. If you feel this is an issue with VS Code's markdown parsing/rendering, please file it against VS Code itself