footnotes: revert to old syntax for most shortcodes #547 #555

only keep new syntax for shortcodes in case its content may contain footnotes,
meaning block level Markdown
This commit is contained in:
Sören Weber 2023-06-03 22:58:23 +02:00
parent 61f05936b1
commit ea59244858
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
7 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/attachments.html" (dict {{- partial "shortcodes/attachments.html" (dict
"context" .Page "context" .Page
"color" (.Get "color") "color" (.Get "color")

View file

@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/badge.html" (dict {{- partial "shortcodes/badge.html" (dict
"context" .Page "context" .Page
"color" (.Get "color") "color" (.Get "color")

View file

@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/button.html" (dict {{- partial "shortcodes/button.html" (dict
"context" .Page "context" .Page
"color" (.Get "color") "color" (.Get "color")

View file

@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/children.html" (dict {{- partial "shortcodes/children.html" (dict
"context" .Page "context" .Page
"containerstyle" (.Get "containerstyle") "containerstyle" (.Get "containerstyle")

View file

@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/icon.html" (dict {{- partial "shortcodes/icon.html" (dict
"context" .Page "context" .Page
"icon" (.Get "icon" | default (.Get 0)) "icon" (.Get "icon" | default (.Get 0))

View file

@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/math.html" (dict {{- partial "shortcodes/math.html" (dict
"context" .Page "context" .Page
"content" .Inner "content" .Inner

View file

@ -1,3 +1,4 @@
{{- $_hugo_config := `{ "version": 1 }` }}
{{- partial "shortcodes/mermaid.html" (dict {{- partial "shortcodes/mermaid.html" (dict
"context" .Page "context" .Page
"content" .Inner "content" .Inner