fix: wikilink image relURL for images with spaces

This commit is contained in:
Jacky Zhao 2022-04-05 14:08:36 -07:00
parent 0ddc48a452
commit 66eaa444a4
1 changed files with 1 additions and 1 deletions

View File

@ -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)}}