Closed wwalker closed 11 months ago
This files exhibits the described behavior:
Here it is in the default github scheme.
Hi @wwalker, can you paste the raw markdown snippet here?
Bold
Underline
InvertColors
ClearAttributes
ResetAllAttributes
Red IntenseRed OnRed OnIntenseRed
Got it, thanks. Seems to be working with Remark though. You can switch between two compilers/parsers available using the extension dropdown.
The default one, Marked, fails on the above snippet, at least the version that was bundled with the extension last time.
Remark, however, renders the above snippet correctly. It only fails if you enable the pedantic
option for it.
Either way it's a compiler issue, I'll bump the Marked version on next release and see how that goes.
Seems to be working in Markdown Viewer v5.2 for all of the supported compilers: marked
, remark
and markdown-it
.
Using Github Dark (didn't test with other modes).
If a code block immediately follows a bullet list item, and that code clock has a blank line in it, markdown-viewer closes the code block at the blank line.
If there is a blank line between the bullet list item and the code block, it renders as not belonging to the bullet list item (i.e., the code block is not indented), but the entire code block is properly included in the code block div. Interestingly the "indented code block behavior (which I prefer) does not occur on github.com.
With or without the blank line following the bullet list item, the code block renders correctly on github.com.