From c7b11e24830c9073f2ce2da28dbeb292c8fd4185ed6bab21431a3bb7916ab5d3 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Wed, 3 Aug 2022 00:00:00 +0000 Subject: Remove italic and bold Markdown from Gemini capsule Only removes asterisks, not underscores. --- layouts/_default/single.gmi | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts/_default') 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 }} -- cgit v1.2.3