Merry Fixmas: How to fix the Hugo error <!-- raw HTML omitted -->
Published: Dec 8, 2022
I recently updated some stackbit files on one of my Hugo sites and afterwards all hyperlinks added with HTML were commented out + made invisible on the live site. In View Source the links were commented out with this:
<!-- raw HTML omitted -->
In some cases, the wrapped text was invisible on the live site. In other cases, not.
Thanks to a Stackoverflow contributor, I got the answer and added this fix below to my config.toml file. Sharing this here in case someone out there’s searching for a solution too.
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true