summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-08-03 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-08-03 00:00:00 +0000
commitc7b11e24830c9073f2ce2da28dbeb292c8fd4185ed6bab21431a3bb7916ab5d3 (patch)
tree533a223ab483ca791dc7af168577c5a1f80867745ac59181d21b22b42f85e7fd /layouts
parentfa4da755d8c8938a1379dd63e9c550360ff118ed60e330b2088688f22e2fd7ac (diff)
downloadhugo-theme-journal-c7b11e24830c9073f2ce2da28dbeb292c8fd4185ed6bab21431a3bb7916ab5d3.tar.gz
hugo-theme-journal-c7b11e24830c9073f2ce2da28dbeb292c8fd4185ed6bab21431a3bb7916ab5d3.zip
Remove italic and bold Markdown from Gemini capsule
Only removes asterisks, not underscores.
Diffstat (limited to 'layouts')
-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 a286ca3..63d8260 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -3,4 +3,5 @@
{{ $content := .RawContent }}
{{- $content = $content | replaceRE `\[(.+?)\]\((.+?)\)` "=> $2 $1" }}
+{{- $content = $content | replaceRE `\*{3}(.+?)\*{3}|\*{2}(.+?)\*{2}|\*{1}(.+?)\*{1}` "$1$2$3$4$5$6" }}
{{- $content | safeHTML }}{{ end }}