mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
fix: wikilink patch not applying to transformed text like apostrophes
This commit is contained in:
parent
66eaa444a4
commit
d5884aedb7
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{/* Wikilinks */}}
|
{{/* Wikilinks */}}
|
||||||
{{$wikilinks := $raw | findRE "!?\\[\\[\\S[^\\[\\]\\|]*(?:\\|[^\\[\\]]*)?\\S\\]\\]" }}
|
{{$wikilinks := $content | findRE "!?\\[\\[\\S[^\\[\\]\\|]*(?:\\|[^\\[\\]]*)?\\S\\]\\]" }}
|
||||||
{{$codefences := $raw | findRE "\\x60[^\\x60\\n]+\\x60"}}
|
{{$codefences := $raw | findRE "\\x60[^\\x60\\n]+\\x60"}}
|
||||||
{{$codeblocks := $raw | findRE "\\x60{3}[^\\x60]+\\x60{3}"}}
|
{{$codeblocks := $raw | findRE "\\x60{3}[^\\x60]+\\x60{3}"}}
|
||||||
{{$code := union $codefences $codeblocks}}
|
{{$code := union $codefences $codeblocks}}
|
||||||
|
|
Loading…
Reference in a new issue