jonschlinkert / sublime-markdown-extended

Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
https://github.com/jonschlinkert
MIT License
660 stars 96 forks source link

Empty line in markdown fenced code blocks #161

Closed john-cj closed 6 years ago

john-cj commented 7 years ago

Probably a bug.

Here is first example. As you can see, there are no empty lines in JS code block. And there are one empty line in Markdown code block (line 20).

ok

Now, if we remove this empty line, to make our code block more gent, the parsing will be broken. Parser would not parse ::: as an end of code block.

notok

Does anybody know how it may be fixed?