summaryrefslogtreecommitdiff
path: root/themes/PaperMod/layouts/shortcodes/rtl.html
blob: a69b8ce8cd4476181c2e8d8c9707785f4b957010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ $.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>