Update some shortcodes to use RenderString.

This commit is contained in:
Fredrik Jonsson 2022-05-27 09:37:08 +02:00
commit ef83bd634c
2 changed files with 2 additions and 2 deletions

View file

@ -2,5 +2,5 @@
{{ $summary := .Get "summary" -}}
<details{{ with $class }} class="{{ . }}"{{ end }}>
{{ with $summary }}<summary>{{ . }}</summary>{{ end }}
{{ .Inner | markdownify }}
{{ .Inner | $.Page.RenderString (dict "display" "block") }}
</details>

View file

@ -1 +1 @@
<div class="{{ .Get 0 }}">{{ if eq (.Get 1) "nomarkdown" }}{{ .Inner }}{{ else }}{{ .Inner | markdownify }}{{ end }}</div>
<div class="{{ .Get 0 }}">{{ if eq (.Get 1) "nomarkdown" }}{{ .Inner }}{{ else }}{{ .Inner | $.Page.RenderString (dict "display" "block") }}{{ end }}</div>