From df0539b9c09c676df6da49b446debec9683b9ca234998ae0da467bc57682b971 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 3 Sep 2022 00:00:00 +0000 Subject: Flatten headings 4 through 6 for Gemini The CSS styling reflects that the headings are flattened as well. --- layouts/_default/single.gmi | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts/_default/single.gmi') diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index ae4fc3c..39a6cb5 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -3,6 +3,7 @@ {{ $content := .RawContent }} +{{- $content = $content | replaceRE `\n####{0,3}` "\n###" }} {{- $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" }} -- cgit v1.2.3