fix: text highlighting

This commit is contained in:
Jacky Zhao 2022-11-30 18:00:12 -08:00
parent 5a7936e23a
commit 4cd6f7efdf

View File

@ -113,7 +113,7 @@
{{end}}
{{/* Make ==text== into <mark>text</mark> */}}
{{$mark := findRE "(?Us)==([^\\$]+)==" $content}}
{{$mark := findRE "==([^=\n]+)==" $content}}
{{range $mark}}
{{$fixed := printf "<mark>%s</mark>" (replace . "==" "")}}
{{$content = replace $content . $fixed}}