Highlighting code spans with Chroma

After switching a website I maintain to hugo, I dropped highlight.js for the built-in Chroma syntax highlighting. The transition has been painless, except that the markdown code spans in >1000 blog posts are not highlighted by Chroma. After reading the docs, it appears there is no support for inline code spans, only code blocks.

This isn’t the end of the world, as I can always style <code> tags separately in CSS, but it does lose the simplicity of changing a single config variable and getting a new, cohesive code style, particularly for dark themes.

See my dummy hugo site for an example of styling <code> tags inline: