summaryrefslogtreecommitdiff
path: root/layouts/_default/single.gmi
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
commit38f63bb91e322048f52e3d5d8dcb902e4228fddd0049bccb8112ed7c49c16cd6 (patch)
tree30843330a0c55048576eb3d64964673398ee72971fcce95d71b8c5d49b394068 /layouts/_default/single.gmi
parentbf8c59b0a5dc364fc62dbc435267057453b15c4a953b7c5e76e28c210e55bd58 (diff)
downloadhugo-theme-journal-38f63bb91e322048f52e3d5d8dcb902e4228fddd0049bccb8112ed7c49c16cd6.tar.gz
hugo-theme-journal-38f63bb91e322048f52e3d5d8dcb902e4228fddd0049bccb8112ed7c49c16cd6.zip
Revert "Vanish HTML line breaks"
This reverts commit 08712197aa459823cdb8c8dd06098133b2810a6f. For now, don't try to parse HTML tags with RegEx.
Diffstat (limited to 'layouts/_default/single.gmi')
-rw-r--r--layouts/_default/single.gmi1
1 files changed, 0 insertions, 1 deletions
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 `<br/?>` "\n" }}
{{- $content | safeHTML }}{{ end }}