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
commitca2588d6cbe3686ba229f6919b5e81174fbc0237d12fd2b2f774d0763ef2c4df (patch)
treef42d21732c9b8fbd570d105dbe8dba3eedb81ddf04ceff0bbe4850d7f4482662 /layouts
parentbeb43e8bb85e0358ceec3163495baea4b25181122719eb794a882a37a36e7ec9 (diff)
downloadhugo-theme-journal-ca2588d6cbe3686ba229f6919b5e81174fbc0237d12fd2b2f774d0763ef2c4df.tar.gz
hugo-theme-journal-ca2588d6cbe3686ba229f6919b5e81174fbc0237d12fd2b2f774d0763ef2c4df.zip
Make Gemini properly recognize Markdown's unordered lists that start
with '-'
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.gmi1
1 files changed, 1 insertions, 0 deletions
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 }}