Code blocks were highlighted when I was developing locally with hugo server
, but when I would deploy the built site, the syntax highlighting was gone.
To fix it, add these two lines to your config.toml
:
pygmentsCodeFences = true
pygmentsUseClasses = false