mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-01 14:56:55 +01:00
16 lines
286 B
HTML
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>
|