rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
18.42k stars 1.65k forks source link

Enhance syntax highlighting #2448

Closed jackieh closed 1 month ago

jackieh commented 1 month ago

Add syntax highlighting for hljs-attr and hljs-section CSS classes, consistent with the Ayu theme.

Fixes https://github.com/rust-lang/mdBook/issues/2447

Before:

before

After:

after

Affects syntax highlighting for the following languages: apache, ini, javascript, makefile, markdown, nginx, nix, properties, yaml.