fix shortcodes rendering markdown img
replace markdownify with .Page.RenderString, the latter trigger render hook properly see: https://gohugo.io/functions/markdownify/#readout > Note: if you need Render Hooks, which markdownify doesn’t currently support, use .RenderString instead.
This commit is contained in:
parent
82a79a8354
commit
375281fd60
|
@ -1,4 +1,4 @@
|
|||
<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
|
||||
<summary markdown="span">{{ .Get 0 | markdownify }}</summary>
|
||||
{{ .Inner | markdownify }}
|
||||
{{ .Page.RenderString .Inner }}
|
||||
</details></p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<figure class="center align-center">
|
||||
{{ .Inner | markdownify }}
|
||||
{{ .Page.RenderString .Inner }}
|
||||
|
||||
<figcaption><p>{{ .Get 0 | markdownify }}</p></figcaption>
|
||||
</figure>
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
|
||||
{{- with (.Get "height") }}max-height: {{ . }};{{ end -}}
|
||||
">
|
||||
{{ .Inner | markdownify }}
|
||||
{{ .Page.RenderString .Inner }}
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<p class="standout">
|
||||
{{ .Inner | markdownify }}
|
||||
{{ .Page.RenderString .Inner }}
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue