From 38f63bb91e322048f52e3d5d8dcb902e4228fddd0049bccb8112ed7c49c16cd6 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 7 Aug 2022 00:00:00 +0000 Subject: Revert "Vanish HTML line breaks" This reverts commit 08712197aa459823cdb8c8dd06098133b2810a6f. For now, don't try to parse HTML tags with RegEx. --- layouts/_default/single.gmi | 1 - 1 file changed, 1 deletion(-) diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 6ac4358..1ae1a6a 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -5,5 +5,4 @@ {{- $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 = $content | replaceRE `
` "\n" }} {{- $content | safeHTML }}{{ end }} -- cgit v1.2.3