aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.gmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 8695a9b..2ea32cd 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -27,7 +27,7 @@
{{- $cur_chunk = $cur_chunk | replaceRE `(?m)\[(.+?)\]\((.+?)\)` (print "=> $2 " $emoji "$1") }}
{{- end }}
{{- $cur_chunk = $cur_chunk | replaceRE `(?m)^####{1,3}` "###" }}
- {{- $cur_chunk = $cur_chunk | replaceRE `(?s)\*{3}(.*?)\*{3}|\*{2}(.*?)\*{2}|\*{1}(.*?)\*{1}` "$1$2$3" }}
+ {{- $cur_chunk = $cur_chunk | replaceRE `\*{3}(\S.+?\S)\*{3}|\*{2}(\S.+?\S)\*{2}|\*{1}(\S.+?\S)\*{1}` "$1$2$3" }}
{{- $cur_chunk = $cur_chunk | replaceRE `(?m)^- ` "* " }}
{{- $cur_chunk = $cur_chunk | emojify }}
{{- $content = replace $content $before_chunk $cur_chunk 1 }}