From a8b62804b0553f184dc589bbf1fc8f7691eded76 Mon Sep 17 00:00:00 2001 From: Anton Dollmaier <1730675+antondollmaier@users.noreply.github.com> Date: Tue, 11 Jul 2023 15:41:37 +0200 Subject: [PATCH] add note for HTML markup To use icons via HTML elements directly, unsafe markup must be allowed. --- exampleSite/content/shortcodes/icon.en.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/shortcodes/icon.en.md b/exampleSite/content/shortcodes/icon.en.md index 498a28bc43..558129f1af 100644 --- a/exampleSite/content/shortcodes/icon.en.md +++ b/exampleSite/content/shortcodes/icon.en.md @@ -88,10 +88,17 @@ Built with {{% icon heart %}} by Relearn and Hugo ### Advanced HTML Usage -While the shortcode simplyfies using standard icons, the icon customisation and other advanced features of the Font Awesome library requires you to use HTML directly. Just paste the `` HTML into markup and Font Awesome will load the relevant icon. +While the shortcode simplifies using standard icons, the icon customization and other advanced features of the Font Awesome library require you to use HTML directly. Paste the `` HTML into markup, and Font Awesome will load the relevant icon. ````html Built with by Relearn and Hugo ```` Built with by Relearn and Hugo + +To use these native HTML elements in your Markdown, add this in your `config.toml`: + +````toml +[markup.goldmark.renderer] + unsafe = true +````