From f26c973a82219ae7c1e52722978ca739347717a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20N=C3=A4f?= Date: Mon, 26 Feb 2024 10:12:01 +0100 Subject: [PATCH] docs: add information that `unsafe = true` is required for nested shortcodes (#795) --- exampleSite/content/en/usage/configuration.md | 6 ++++-- exampleSite/content/en/usage/getting-started.md | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/exampleSite/content/en/usage/configuration.md b/exampleSite/content/en/usage/configuration.md index c4dfd84..ee0235e 100644 --- a/exampleSite/content/en/usage/configuration.md +++ b/exampleSite/content/en/usage/configuration.md @@ -26,7 +26,8 @@ enableRobotsTXT = true [markup] [markup.goldmark.renderer] - # Needed for mermaid shortcode + # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within + # columns or tabs) unsafe = true [markup.tableOfContents] startLevel = 1 @@ -150,7 +151,8 @@ enableRobotsTXT: true markup: goldmark: - # Needed for mermaid shortcode + # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within + # columns or tabs) renderer: unsafe: true tableOfContents: diff --git a/exampleSite/content/en/usage/getting-started.md b/exampleSite/content/en/usage/getting-started.md index 342eece..6776339 100644 --- a/exampleSite/content/en/usage/getting-started.md +++ b/exampleSite/content/en/usage/getting-started.md @@ -64,7 +64,8 @@ To prepare your new site environment just a few steps are required: # Needed for mermaid shortcodes [markup] [markup.goldmark.renderer] - # Needed for mermaid shortcode + # Needed for mermaid shortcode or when nesting shortcodes (e.g. img within + # columns or tabs) unsafe = true [markup.tableOfContents] startLevel = 1