docs: add information that unsafe = true is required for nested shortcodes (#795)

This commit is contained in:
Patrick Näf 2024-02-26 10:12:01 +01:00 committed by GitHub
parent b6c6735f4c
commit f26c973a82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -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:

View file

@ -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