From bbb65a782f4db17efa0579168d597e651cd45dbe Mon Sep 17 00:00:00 2001
From: tdro
(–|—).*
` .Content -}} - +{{- $blockquoteFooters := findRE `\n(–|—).*
` .Content -}} {{- range $blockquoteFooter := $blockquoteFooters -}} - {{- $blockquoteFooterFixed := $blockquoteFooter | replaceRE "\n" "
" "" | -}} - {{- $content = $content | replaceRE $blockquoteFooter $blockquoteFooterFixed -}} +{{- end -}} +{{- $blockquoteFooters = findRE `(?s)\n(–|—).*
` .Content -}} +{{- range $blockquoteFooter := $blockquoteFooters -}} + {{- $blockquoteFooterFixed := $blockquoteFooter | + replaceRE "\n" "
" "" | + -}} + {{- $content = $content | replaceRE $blockquoteFooter $blockquoteFooterFixed -}} {{- end -}} {{- if $empty -}} -- cgit v1.2.3