Closed Mouthless-Stoat closed 7 months ago
Hm, I'm not able to reproduce with the given example. Can you check if there are any errors in the javascript console? Can you check if the generated HTML code block has <span class="boring">
?
After messing around some more seem to be my version of highlight.js
being weird. It seem downloading a custom build of highlight.js
cause some issue idk if this is more highlight.js
issue or more of mdbook
issue:
All I did was go to the custom build site and select only json
download that and copy over the highlight.min.js
file into the theme/highlight.js
file. While I'm here how do i acctually add a new 3rd party language to highlight.js
The newer versions of highlight.js won't work. There are instructions at https://github.com/rust-lang/mdBook/blob/master/CONTRIBUTING.md#updating-highlightjs for checking out an older version and building it. We're currently on 10.1.1
.
Problem
output.html.code.hidelines
does not seem to work with any other language apart from the example languagepython
andrust
. I have tryjson
,gdscript
and none of the language workSteps
book.toml
add:mdbook serve
and see the code block not render with hidden lines.Possible Solution(s)
No response
Notes
No response
Version