Render raw html in HUGO markdown files

Render raw html in HUGO markdown files

Jason Murray

hugohtmlmarkdown

tech

32 Words

2021-04-02 06:32 -0500


By default Hugo will not render embedded html in markdown files. To enable, add the following lines to config.toml:

[markup.goldmark.renderer]
  unsafe = true

Entering the raw html:

<h1>hello world!</h1>

Renders:

hello world!