Closed gsingh93 closed 5 months ago
Interestingly, line numbers show up with this configuration in config.toml
:
[markup.highlight]
noClasses = false
And then generating the styles with hugo gen chromastyles
. But it still doesn't look great, could use some improved styling:
Thank you for the explanation as I have not tested this before so I don't know if the number is not working.
I'll solve this when I have time.
Interestingly, line numbers show up with this configuration in
config.toml
:[markup.highlight] noClasses = false
And then generating the styles with
hugo gen chromastyles
. But it still doesn't look great, could use some improved styling:
If markup.highlight.noClasses=false
is used in the site configuration, a stylesheet is required. However, there is a problem with the base style, so the provided stylesheet does not work.
The branch feat-experimental-config contains the latest fix, but it still need some tests to be merged into main.
Here is the preview of the latest fix:
the change has been merged.
If I enable
linenos
for a code block, the line numbers don't show up: