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

Minimal syntax problems inside fenced code blocks makes the code block continue until the end of the file #140

Open lwolfsonkin opened 7 years ago

lwolfsonkin commented 7 years ago

This java fenced code block displays fine:

captura de tela 2016-09-21 as 20 41 54

but, if I miss a semicolon in the Java, the rest of the Java syntax looks fine, but the fenced code block overflows till the end of the document.

captura de tela 2016-09-21 as 20 42 02
gwenzek commented 7 years ago

@jonschlinkert Please have a look at my Markdeep syntax. There is a simple trick to allow to handle incorrect java (or any language) code inside your Markdown syntax.

iamed2 commented 7 years ago

This happens for other languages as well (I encountered it with Julia).