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

Fenced code block requires empty line before it #27

Closed houshuang closed 10 years ago

houshuang commented 11 years ago

It would be great if fenced code blocks didn't require empty lines before them,

ie. this doesn't work:

but this does

jonschlinkert commented 11 years ago

Yeah, that's in the readme. I played around with the regex for quite a while to fix it, but I might be missing some nuance about how ST parses. Either that, or I don't have the skills... probably the latter.

If you want to give it a shot I'd love to see a PR for this! :-)