mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-12 11:40:40 +00:00
parent
7f9f58860d
commit
de2b6b9a1b
3 changed files with 13 additions and 0 deletions
layouts/partials
|
@ -96,4 +96,11 @@
|
|||
{{ $content = $content | replaceRE "blockquote class=callout" "blockquote" }}
|
||||
{{end}}
|
||||
|
||||
{{/* Make ==text== into <mark>text</mark> */}}
|
||||
{{$mark := findRE "(?Us)==([^\\$]+)==" $content}}
|
||||
{{range $mark}}
|
||||
{{$fixed := printf "<mark>%s</mark>" (replace . "==" "")}}
|
||||
{{$content = replace $content . $fixed}}
|
||||
{{end}}
|
||||
|
||||
{{ $content | safeHTML }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue