Closed MarcinKlejna closed 3 years ago
So Hugo uses Goldmark as its Markdown processor, which by default ignores HTML in Markdown files unless you set the following in your config.toml
:
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
(see https://www.docsy.dev/docs/adding-content/content/#page-contents-and-markup)
I did so in a test site and here's your code with highlighting: https://tender-beaver-c94732.netlify.app/docs/examples/
(if I comment out the unsafe = true
the highlighting disappears)
Thank you!
Template does not highlight code: other template: https://ibb.co/KqKypmd docsy: https://ibb.co/bRSK8t6
Markdown code