{{- define "main" -}}
{{- if (gt (len (findRE "<h1" .Content)) 0) }}
<article>
- {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | replaceRE "\n" "\n " | safeHTML }}
+ {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | safeHTML }}
{{- else -}}
<article>
{{ .Content | replaceRE "\n" "\n " | safeHTML }}