PaperModX/layouts/shortcodes/image-size-control.html
Reorx 375281fd60 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.
2022-06-01 16:21:06 +08:00

7 lines
198 B
HTML

<div class="image-size-control" style="
{{- with (.Get "width") }}max-width: {{ . }};{{ end -}}
{{- with (.Get "height") }}max-height: {{ . }};{{ end -}}
">
{{ .Page.RenderString .Inner }}
</div>