diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html index f614868b5..2312aa461 100644 --- a/layouts/partials/textprocessing.html +++ b/layouts/partials/textprocessing.html @@ -10,7 +10,7 @@ {{end}} {{/* Wikilinks */}} -{{$wikilinks := $raw | findRE "!?\\[\\[\\S[^\\[\\]\\|]*(?:\\|[^\\[\\]]*)?\\S\\]\\]" }} +{{$wikilinks := $content | findRE "!?\\[\\[\\S[^\\[\\]\\|]*(?:\\|[^\\[\\]]*)?\\S\\]\\]" }} {{$codefences := $raw | findRE "\\x60[^\\x60\\n]+\\x60"}} {{$codeblocks := $raw | findRE "\\x60{3}[^\\x60]+\\x60{3}"}} {{$code := union $codefences $codeblocks}}