-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
I've opened this ticket over at highlightjs and they suspect that this might have to do with mkdocs instead of highlightjs...
Whenever a code block contains code in comments, the CSS class(es) applied to the code block is of a different language which will naturally screw up the syntax and the visual apparence of the text.
I could reproduce this issue with, at least, objectivec and swift.
When writing:
And:
It produces the wrong highlighting:
If we take a look at the classes added:
It's identifying the block as an SQL code block...
It's identifying the block as a bash code block...
If we remove the comments from the markdown
Expected behavior
I expected the code blocks to appear correctly with the comment syntax.
Additional context
- I'm using mkdocs version 1.0.4 and pymdown-extensions 7.1 and Markdown 3.2.2.
Metadata
Metadata
Assignees
Labels
No labels





