Jacky Zhao
2022-04-05 66eaa444a41d1bd87bb1f28f9786412db6e7e274
fix: wikilink image relURL for images with spaces
1 files modified
2 ■■■ changed files
layouts/partials/textprocessing.html 2 ●●● patch | view | raw | blame | history
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)}}