From ad375df7a86aa0733946d1bf35157e14e8d4301e Mon Sep 17 00:00:00 2001
From: tdro
–.*
` .Content 1) "" -}} -{{- $blockquoteFooterEmDash := delimit (findRE `\n—.*
` .Content 1) "" -}} +{{- $blockquoteFooters := findRE `\n(–|—).*
` .Content -}} -{{- $blockquoteFooterFixedEnDash := $blockquoteFooterEnDash | - replaceRE "\n" "
" "" | --}} +{{- range $blockquoteFooter := $blockquoteFooters -}} -{{- $blockquoteFooterFixedEmDash := $blockquoteFooterEmDash | - replaceRE "\n" "
" "" | --}} + {{- $blockquoteFooterFixed := $blockquoteFooter | + replaceRE "\n" "
" "" | + -}} -{{- - $content = $content | - replaceRE $blockquoteFooterEnDash $blockquoteFooterFixedEnDash | - replaceRE $blockquoteFooterEmDash $blockquoteFooterFixedEmDash | --}} + {{- $content = $content | replaceRE $blockquoteFooter $blockquoteFooterFixed -}} + +{{- end -}} {{- if $empty -}} {{- $content = "This message contains no content." -}} -- cgit v1.2.3