summaryrefslogtreecommitdiff
path: root/themes/PaperMod/layouts/shortcodes/ltr.html
blob: 4ad7682b09107093adf26cd78e274a75de6249f0 (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="ltr">
  {{ if eq ($.Scratch.Get "md") false }}
    {{ .Inner }}
  {{ else }}
    {{ .Inner | markdownify }}
  {{ end }}
</div>