Sometimes (in confusing circumstances) the syntax highlighting for a code block inside the preview gets the colours wrong, but plain markdown-preview renders them correctly.
The problem occurs regardless of whether I am using the pandoc or markdown-it backend.
I have noticed that this happens in several different grammars, but in this particular example, I am using the language-riscv package. Here is the source markdown:
```riscv
add s0, a0, t0 #comment (not right)
lw s2 8(s0) #comment (renders correctly)
bgeu s3, s2, 3 #comment (rest of line not right either)
```
Sometimes (in confusing circumstances) the syntax highlighting for a code block inside the preview gets the colours wrong, but plain markdown-preview renders them correctly.
The problem occurs regardless of whether I am using the pandoc or markdown-it backend.
I have noticed that this happens in several different grammars, but in this particular example, I am using the language-riscv package. Here is the source markdown:
The result in markdown-preview:
And the result in markdown-preview-plus: