comprehensive-rust icon indicating copy to clipboard operation
comprehensive-rust copied to clipboard

Inconsistent syntax highlighting between various types of code blocks

Open gendx opened this issue 2 years ago • 2 comments

Looking at this page, it seems that syntax highlighting (and line spacing) is inconsistent between code blocks marked as editable vs. ignore.

I find the colors somewhat better for ignore, but the drawback is that it's not editable, and the extra line spacing is not necessary.


editable block:

image


ignore block:

image

gendx avatar Feb 03 '23 15:02 gendx

Yes, you're quite right! I reported this upstream as well: https://github.com/rust-lang/mdBook/issues/1796.

I remember playing around with using the Ace editor for all code (and then toggling the read-only mode for blocks which are not editable). I can probably dig that code out again from somewhere :smile:

mgeisler avatar Feb 03 '23 16:02 mgeisler

Glad to see it's already reported upstream :)

gendx avatar Feb 03 '23 16:02 gendx