quellcode.0x90.space/layouts/shortcodes/rtl.html
v 6892a6f7b0 Squashed 'themes/PaperMod/' content from commit 4a924ce
git-subtree-dir: themes/PaperMod
git-subtree-split: 4a924cef54081b61530a30bd69d442ae95f16561
2023-07-05 19:23:15 +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>