You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using both LinkableLineNumbers(true) and WithClasses(true) the html generated by LinkableLineNumbers always includes a style instead of a class for the style of the line number link.
Describe the bug
When using both
LinkableLineNumbers(true)
andWithClasses(true)
the html generated byLinkableLineNumbers
always includes astyle
instead of aclass
for the style of the line number link.https://github.com/alecthomas/chroma/blob/master/formatters/html/html.go#L353
To Reproduce
I think this can be reproduced with any code input:
But the Chroma CLI doesn't have a build with Linkable line numbers yet.
I think a full command would be:
Here is the HTML output generated by Hugo demonstrating the problem
Although the
table
andtd
elements have classes thea
element has an inline style.I apologize I don't know Golang so I can't test or submit a patch, but it looks like the style needs to be applied similar to highlighted lines here:
https://github.com/alecthomas/chroma/blob/master/formatters/html/html.go#L293
The text was updated successfully, but these errors were encountered: