vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Double line in a comment breaks syntax highlighting

Open carlosalberto opened this issue 3 years ago • 1 comments

I have a document and within a comment section I have a "--", which breaks the syntax highlighting for the ENTIRE document:

<!-- Ofending line RIGHT BELOW -->
<!-- Re-generate TOC with `markdown-toc --no-first-h1 -i` -->

Text here is NOT recognized anymore, considered a huge comment section.

If markdown-toc --no-first-h1 -i becomes markdown-toc -no-first-h1 -i then all work as expected.

This is on the master branch.

carlosalberto avatar Apr 12 '22 22:04 carlosalberto

At least at first bluff this does look like a bug. Contributions welcome. I didn't immediately find where this is being parsed and won't likely have much time to dig into it soon but I'm happy to facilitate PRs if anybody jumps in.

alerque avatar Apr 13 '22 13:04 alerque