{{- $headers := findRE "(.|\n])+?" .Content -}} {{- $has_headers := ge (len $headers) 1 -}} {{- if $has_headers -}} {{- $largest := 6 -}} {{- range $headers -}} {{- $headerLevel := index (findRE "[1-4]" . 1) 0 -}} {{- $headerLevel := len (seq $headerLevel) -}} {{- if lt $headerLevel $largest -}} {{- $largest = $headerLevel -}} {{- end -}} {{- end -}} {{- $firstHeaderLevel := len (seq (index (findRE "[1-4]" (index $headers 0) 1) 0)) -}} {{- $.Scratch.Set "bareul" slice -}}
Inhalt {{- else -}} {{- end -}} {{- end -}}
{{- end -}}