From 8cf8ba7f7852e850f3f5c24c887e0ca50c6ed150 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 26 Feb 2024 23:10:30 -0600 Subject: [PATCH] tweak for trailing footnote removal in gemini --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 698f39f..74c7257 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -5,7 +5,7 @@ {{ $content := $content | replaceRE `#### ` "### " -}} {{ $content := $content | replaceRE `\n- (.+?)` "\n* $1" -}} {{ $content := $content | replaceRE `\n(\d+). (.+?)` "\n* $2" -}} -{{ $content := $content | replaceRE `\[\^(.+?)\]:.*\n?\n` "" -}} +{{ $content := $content | replaceRE `\[\^(.+?)\]:.*\n?\n?` "" -}} {{ $content := $content | replaceRE `\[\^(.+?)\]` "" -}} {{ $content := $content | replaceRE `
` "\n" -}} {{ $content := $content | replaceRE `\{\{%\s\/?notice.*%\}\}` "***" -}}