How can I render code snippets with line numbers?
Our slides used to use .line-numbers, that functionality was removed in 012f6e67, where the commit message refers to using .numberLines, which doesn't work for me.
The highlightjs-line-numbers plugin we use checks for data-line-numbers on <code> tags, but if i start my code blocks with {.c line-numbers="1-4"}, the data-line-numbers is added to an outer <pre> element, not the inner <code> element.
Is this a bug and one of these ways should work, or is there some less obvious way to enable this?
(This may be related to #4)
How can I render code snippets with line numbers?
Our slides used to use
.line-numbers, that functionality was removed in 012f6e67, where the commit message refers to using.numberLines, which doesn't work for me.The highlightjs-line-numbers plugin we use checks for
data-line-numberson<code>tags, but if i start my code blocks with{.c line-numbers="1-4"}, thedata-line-numbersis added to an outer<pre>element, not the inner<code>element.Is this a bug and one of these ways should work, or is there some less obvious way to enable this?
(This may be related to #4)