-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Book, config: TOML syntax highlighting broken #6932
Labels
Comments
Yea, that's bugged me for a while. The problem is that the highlighting engine (highlight.js) doesn't highlight toml properly. Either highlight.js needs to be updated to handle comments after keys, or mdbook needs to switch to a different highlighter. Fixing highlight.js doesn't look too difficult. |
This is now fixed on nightly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The syntax highlighting of the long TOML section at https://doc.rust-lang.org/cargo/reference/config.html#configuration-keys looks wrong:
The section correctly starts with a
```toml
fence:cargo/src/doc/src/reference/config.md
Line 43 in ceb1389
Btw, GitHub seems to display that same section just fine:
https://github.com/rust-lang/cargo/blob/ceb1389037ff4987a9a51066a173012ee18861dc/src/doc/src/reference/config.md#configuration-keys
The text was updated successfully, but these errors were encountered: