Jon Erling Hustadnes
2022-11-27 5fd707714faaaac5c3d39ec056ff88446fcb3cc2
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 }}