From 4cd6f7efdf9161f1a1c7ad381d5bc4f2828eedb8 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 7f2902884..7b82f3228 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}}