Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sh3Rm4n opened this issue Jun 23, 2017 · 3 comments

Comments

@Sh3Rm4n
Copy link

Sh3Rm4n commented Jun 23, 2017

markdown-language-highlighting-issue

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

@Sh3Rm4n Sh3Rm4n changed the title Wrong syntax highlighting due to curly bracket '{' and less than sign '<<' Wrong syntax highlighting in c code block due to curly bracket '{' and less than sign '<<' Jun 23, 2017
@burodepeper
Copy link
Owner

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
Copy link
Author

Sh3Rm4n commented Jun 23, 2017

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants