From caa966de8a3d2aa2fd467b4f3deabaf42a2f18ca Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Wed, 30 Nov 2022 18:00:12 -0800 Subject: [PATCH] fix: text highlighting --- layouts/partials/textprocessing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html index 7f290288..7b82f322 100644 --- a/layouts/partials/textprocessing.html +++ b/layouts/partials/textprocessing.html @@ -113,7 +113,7 @@ {{end}} {{/* Make ==text== into text */}} -{{$mark := findRE "(?Us)==([^\\$]+)==" $content}} +{{$mark := findRE "==([^=\n]+)==" $content}} {{range $mark}} {{$fixed := printf "%s" (replace . "==" "")}} {{$content = replace $content . $fixed}}