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

Wrong syntax highlighting in c code block due to curly bracket '{' and less than sign '<<' #183

Open Sh3Rm4n opened 7 years ago

Sh3Rm4n commented 7 years ago

markdown-language-highlighting-issue

markdown-language default settings Syntax Theme and UI Theme: One Dark

burodepeper commented 7 years ago

Verified.

It appears that the language-html mistakingly is 'allowed' to detect patterns where it shouldn't. This only happens with certain language packs though: language-c and language-php (which is injected). language-javascript and language-python seem to be 'protected' from this.

It could be related to #182, which dates back to still unfixed issues in language-gfm.

Quickfix: if you don't need language-html, disable it. You might run into different related issues though.

Sh3Rm4n commented 7 years ago

Thank you! The quickfix helped. I dont need language-html right now so this should be a good enough fix for the moment. I only need to remember to reenable the package if needed 😅

burodepeper commented 7 years ago

And the quickfix for that would be a tattoo on your hand reminding you of that ;)