From ca2588d6cbe3686ba229f6919b5e81174fbc0237d12fd2b2f774d0763ef2c4df Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 7 Aug 2022 00:00:00 +0000 Subject: Make Gemini properly recognize Markdown's unordered lists that start with '-' --- layouts/_default/single.gmi | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts') diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 63d8260..1ae1a6a 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -4,4 +4,5 @@ {{ $content := .RawContent }} {{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)` "=> $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