From 23ecd06eef6d124c3c9c08f563090804beb403b4 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Tue, 5 Apr 2022 14:08:36 -0700 Subject: [PATCH] fix: wikilink image relURL for images with spaces --- layouts/partials/textprocessing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/textprocessing.html b/layouts/partials/textprocessing.html index ad76d049..f614868b 100644 --- a/layouts/partials/textprocessing.html +++ b/layouts/partials/textprocessing.html @@ -26,7 +26,7 @@ {{if (hasPrefix . "!")}} {{$inner := . | strings.TrimPrefix "![[" | strings.TrimSuffix "]]" }} {{$split := split $inner "|"}} - {{$path := index $split 0}} + {{$path := index $split 0 | relURL}} {{$reference := split $path "#"}} {{$title := index $reference 0}} {{$display := default $title (index $split 1)}}