diff --git a/assets/styles/base.scss b/assets/styles/base.scss
index 8bd97efa..80e29dec 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 a7a2e799..fc0108a5 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 6776fa5b..bd2cca5d 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 }}