Open anlar opened 1 year ago
I've also done similar workarounds to make Asciidoctor work with rouge highlighter. The stylesheet are linked in the header which Hugo removes by adding --no-header-or-footer
in the resulting conversion command. Though this could be configured to behave differently, it is closer to an expected behavior rather than a bug. I agree that this should be documented somehwere.
This is indeed expected behavior. Your workarounds are correct.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
Details
I'm using Hugo to process Asciidoc articles with Coderay highlighter, with the following
config.toml
:With this config Hugo correctly renders code blocks (so they are wrapped in
<pre class="CodeRay highlight">
). Problem is that CSS for CodeRay is not included in result pages automatically.As a workaround I could either:
coderay.css
directly to my theme;coderay.css
to static directory of my site and link to it in my theme.Not sure if it is expected behavior or bug. But if it is expected there should be a note in
External Helper Asciidoctor
documentation.