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