6 lines
180 B
HTML
6 lines
180 B
HTML
{{ $markdown := . | markdownify }}
|
|
{{ if or (strings.Contains $markdown "<p>") (strings.Contains $markdown "<li>") }}
|
|
{{ $markdown }}
|
|
{{ else }}
|
|
<p>{{ $markdown }}</p>
|
|
{{ end }}
|