diff --git a/assets/styles/base.scss b/assets/styles/base.scss
index 8bd97efa1..80e29dec9 100644
--- a/assets/styles/base.scss
+++ b/assets/styles/base.scss
@@ -619,3 +619,7 @@ header {
}
}
+mark {
+ background-color: var(--highlighted);
+ color: var(--gray);
+}
diff --git a/assets/styles/custom.scss b/assets/styles/custom.scss
index a7a2e7992..fc0108a53 100644
--- a/assets/styles/custom.scss
+++ b/assets/styles/custom.scss
@@ -11,6 +11,7 @@
--lightgray: #f0f0f0;
--outlinegray: #dadada;
--million-progress-bar-color: var(--secondary);
+ --highlighted: #f5dfaf88;
}
[saved-theme="dark"] {
@@ -23,6 +24,7 @@
--gray: #d4d4d4 !important;
--lightgray: #292633 !important;
--outlinegray: #343434 !important;
+ --highlighted: #574010;
}
diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html
index 6776fa5b1..bd2cca5de 100644
--- a/layouts/partials/textprocessing.html
+++ b/layouts/partials/textprocessing.html
@@ -96,4 +96,11 @@
{{ $content = $content | replaceRE "blockquote class=callout" "blockquote" }}
{{end}}
+{{/* Make ==text== into text */}}
+{{$mark := findRE "(?Us)==([^\\$]+)==" $content}}
+{{range $mark}}
+ {{$fixed := printf "%s" (replace . "==" "")}}
+ {{$content = replace $content . $fixed}}
+{{end}}
+
{{ $content | safeHTML }}