aboutsummaryrefslogtreecommitdiff
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
commit6ceddfc7d9f08078ddaee2a9c5e66235d72f18ce0ea8fe8daa6596f3476a21c7 (patch)
tree5a14918ebdff5262cc6e20ce023640c84115ef26687c3d46969d0ece81ee1639
parentdedcb9a4c257d8095bb6626d42276e9b7ff2fa611f87b5c5d5b96b855705cd5c (diff)
downloadhugo-theme-journal-6ceddfc7d9f08078ddaee2a9c5e66235d72f18ce0ea8fe8daa6596f3476a21c7.tar.gz
hugo-theme-journal-6ceddfc7d9f08078ddaee2a9c5e66235d72f18ce0ea8fe8daa6596f3476a21c7.zip
Vanish HTML line breaks
-rw-r--r--layouts/_default/single.gmi1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 1ae1a6a..6ac4358 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -5,4 +5,5 @@
{{- $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 }}