From e01f5c393adc7f72cf6e9bf20d2382e2ea098d8d19e3d607635138b98d74fca9 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 3 Sep 2022 00:00:00 +0000 Subject: Remove redundant regex --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 39a6cb5..93501e0 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -6,5 +6,5 @@ {{- $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" }} +{{- $content = $content | replaceRE `\n- ` "\n* " }} {{- $content | safeHTML }}{{ end }} -- cgit v1.2.3