SafEight
2022-11-19 de2b6b9a1b95cb6af7eb421d9a4de054e7e41315
layouts/partials/textprocessing.html
@@ -96,4 +96,11 @@
  {{ $content = $content | replaceRE "blockquote class=callout" "blockquote" }}
{{end}}
{{/* Make ==text== into <mark>text</mark> */}}
{{$mark := findRE "(?Us)==([^\\$]+)==" $content}}
{{range $mark}}
  {{$fixed := printf "<mark>%s</mark>" (replace . "==" "")}}
  {{$content = replace $content . $fixed}}
{{end}}
{{ $content | safeHTML }}