I finally decided to run some updates on the ol' blog and noticed some posts had missing content after the update. At a glance all the missing content seemingly used raw HTML tags.

A quick look to the rendered source found comment tags in all the previous HTML locations:

<!-- raw HTML omitted -->

It turns out somewhere along the line (Hugo v0.6.0) the markdown rendering engine was changed to Goldmark. The default in Goldmark is not to render any raw HTML.

Changing the Goldmark default in Hugo

To get raw HTML rendering again we just need to add the goldmark settings in the hugo config.toml.

config.toml
1
2
3
4
[markup]
  [markup.goldmark]
    [markup.goldmark.renderer]
      unsafe = true