test-cross-blogger/themes/PaperMod/layouts/shortcodes/rtl.html

16 lines
286 B
HTML
Raw Permalink Normal View History

2024-06-25 15:51:17 +01:00
{{ $.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>