From 7995aef573e78c70972b67692b126e571686816aa68be64d1281b70e98061127 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 7 Aug 2022 00:00:00 +0000 Subject: Fix link conversion --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default') 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 }} -- cgit v1.2.3