yann.verry.org/themes/PaperMod/layouts/shortcodes/rtl.html
Yann Verry 138071bfb8
All checks were successful
continuous-integration/drone/push Build is passing
add recursive
2022-10-25 22:21:18 +02:00

16 lines
286 B
HTML

{{ $.Scratch.Set "md" false }}
{{ if .IsNamedParams }}
{{ $.Scratch.Set "md" (.Get "md") }}
{{ else }}
{{ $.Scratch.Set "md" (.Get 0) }}
{{ end }}
<div dir="rtl">
{{ if eq ($.Scratch.Get "md") false }}
{{ .Inner }}
{{ else }}
{{ .Inner | markdownify }}
{{ end }}
</div>