Skip to content

Commit

Permalink
fix: text highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Dec 1, 2022
1 parent 5a7936e commit 4cd6f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/textprocessing.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 4cd6f7e

Please sign in to comment.