burodepeper / language-markdown

Add support for Markdown to Atom (including Github flavored, Markdown Extra, CriticMark, YAML/TOML front-matter, and R Markdown), and smart behavior to lists.
https://atom.io/packages/language-markdown
MIT License
119 stars 296 forks source link

Syntax errors in code blocks break subsequent markdown highlighting #241

Closed rdominy closed 5 years ago

rdominy commented 5 years ago

If you have a code block that has a syntax error (e.g., json with no close brace), all markdown highlighting after the code block is broken.

Expected behavior: The code block end should take priority and end that section allowing normal markdown parsing to resume.

Example:

{

This is not highlighted correctly

burodepeper commented 5 years ago

Thanks for reporting. This is a known issue in the first-mate core package of Atom. See https://github.com/atom/first-mate/pull/90 for a related PR and reasoning for why it's not being actively pursued. Closing this because it's an issue with first-mate.