aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-08-07 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-08-07 00:00:00 +0000
commit7995aef573e78c70972b67692b126e571686816aa68be64d1281b70e98061127 (patch)
tree6aef8a3041c49e11b4118160f2d4e7b5e67061d65a3bf19d25233f74961298de /layouts
parent38f63bb91e322048f52e3d5d8dcb902e4228fddd0049bccb8112ed7c49c16cd6 (diff)
downloadhugo-theme-journal-7995aef573e78c70972b67692b126e571686816aa68be64d1281b70e98061127.tar.gz
hugo-theme-journal-7995aef573e78c70972b67692b126e571686816aa68be64d1281b70e98061127.zip
Fix link conversion
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.gmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 1ae1a6a..74fc0fb 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -2,7 +2,7 @@
=> ./{{ replaceRE ".+?/" "../" .RelPermalink | safeURL }} Return to homepage
{{ $content := .RawContent }}
-{{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)` "=> $2 $1" }}
+{{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` "\n=> $2 $1" }}
{{- $content = $content | replaceRE `\*{3}(.+?)\*{3}|\*{2}(.+?)\*{2}|\*{1}(.+?)\*{1}` "$1$2$3$4$5$6" }}
{{- $content = $content | replaceRE `\n- (.+?)` "\n* $1" }}
{{- $content | safeHTML }}{{ end }}