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 blocks require blank line above; not required in GFM #201

Open tomhundt opened 3 years ago

tomhundt commented 3 years ago

In order to get a fenced code block to be recognized by Markdown Extended, you must leave a blank line before the opening marker, like this:

some text

```
x = 5   # some code
```

The blank line is not actually required by GFM. GFM actual spec. Compare to e.g., the MarkdownEditing > Markdown GFM Sublime syntax.

(On the plus side, the backticks are actually recognized as a separate scope available to be styled. Yay!)