Update some shortcodes to use RenderString.
This commit is contained in:
parent
15c5ebe76e
commit
ef83bd634c
2 changed files with 2 additions and 2 deletions
|
|
@ -2,5 +2,5 @@
|
||||||
{{ $summary := .Get "summary" -}}
|
{{ $summary := .Get "summary" -}}
|
||||||
<details{{ with $class }} class="{{ . }}"{{ end }}>
|
<details{{ with $class }} class="{{ . }}"{{ end }}>
|
||||||
{{ with $summary }}<summary>{{ . }}</summary>{{ end }}
|
{{ with $summary }}<summary>{{ . }}</summary>{{ end }}
|
||||||
{{ .Inner | markdownify }}
|
{{ .Inner | $.Page.RenderString (dict "display" "block") }}
|
||||||
</details>
|
</details>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue