Closed azriel91 closed 8 months ago
Closed by #163 in commit fcc0cb5d.
Source code of the highlightjs line numbers is at: https://github.com/azriel91/highlightjs-line-numbers.js/blob/feature/mdbook-support/src/highlightjs-line-numbers.js
Permanent solution would be solved in: https://github.com/rust-lang/mdBook/issues/1303
Currently the book uses
highlightjs-line-numbers.js@2.8.0
, which:<table>
elements, it causes the copied code to contain extra newlines.Probably worth writing the same functionality without using
<table>
elements.Figure out how to add
<span>
s for each line in the code block as a hljs plugin, then CSS counters to add the counter.Links: