Tweak HTML rendering to allow HTML elements in Markdown
By default the Goldmark renderer used by Hugo won't render HTML elements that are present in the markdown, even though this is allowed in the CommonMark Spec that it claims to implement: https://spec.commonmark.org/0.29/#html-blocks We can get this to work by turning on "unsafe" mode, which means: By default, Goldmark does not render raw HTMLs and potentially dangerous links. If you have lots of inline HTML and/or JavaScript, you may need to turn this on. As we have such elements and we can guarantee what's being rendered, turn this on. Signed-off-by:Martyn Welch <martyn.welch@collabora.com>
parent
af5a2a88
No related branches found
No related tags found
Please register or sign in to comment