From 4cd6f7efdf9161f1a1c7ad381d5bc4f2828eedb8 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 01 Dec 2022 02:00:12 +0000
Subject: [PATCH] fix: text highlighting

---
 layouts/partials/textprocessing.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html
index 7f29028..7b82f32 100644
--- a/layouts/partials/textprocessing.html
+++ b/layouts/partials/textprocessing.html
@@ -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}}

--
Gitblit v1.10.0