-
Say I have this code block: ```rust, no_run, my-context ``` In this case, syntax highlighting does not work. If ```, then of course it does work. Is this by design, or can it be configured somehow? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
CommonMark, the normative spec of Markdown, treats the first word that is following to the fence If possible, you should remove the comma following to
See also: markdown-it/markdown-it#626 (comment). This thread makes clear that |
Beta Was this translation helpful? Give feedback.
CommonMark, the normative spec of Markdown, treats the first word that is following to the fence
```
as the language for syntax highlighting.,
is not treated as a delimiter of the language so the code block uses the unknownrust,
language to highlight, notrust
language.If possible, you should remove the comma following to
rust
language string, like this:See also: markdown-it/markdown-it#626 (comment). This thread makes clear that
,
is not allowed in CommonMark.