Featured image of post How to Enable HTML Tags in Hugo (config.toml Settings)

How to Enable HTML Tags in Hugo (config.toml Settings)

We explain how to enable directly writing and using HTML tags within the Markdown articles of the static site generator Hugo. It is completed simply by adding the unsafe setting of markup.goldmark.renderer to config.toml.

By default, HUGO does not allow the use of HTML tags in articles, but you can enable them by adding the following to your config.toml.

1
2
[markup.goldmark.renderer]
    unsafe = true

Reference: Configure Markup

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus