diff options
-rw-r--r-- | layouts/_default/single.gmi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 5c470ab..2064bdd 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -90,9 +90,9 @@ {{/* remove bold and italics asterisk symbols */ -}} {{/* note: this operation is performed in 3 steps to handle nested bold and italics */ -}} {{/* note: this operation is performed last to avoid incorrectly rendering (un)ordered lists */ -}} - {{ $rendered_text = $rendered_text | replaceRE `\*{3}(\S(?:.*\S)?)\*{3}` "$1" -}} - {{ $rendered_text = $rendered_text | replaceRE `\*{2}(\S(?:.*\S)?)\*{2}` "$1" -}} - {{ $rendered_text = $rendered_text | replaceRE `\*{1}(\S(?:.*\S)?)\*{1}` "$1" -}} + {{ $rendered_text = $rendered_text | replaceRE `\*{3}(\S(?:.*?\S)?)\*{3}` "$1" -}} + {{ $rendered_text = $rendered_text | replaceRE `\*{2}(\S(?:.*?\S)?)\*{2}` "$1" -}} + {{ $rendered_text = $rendered_text | replaceRE `\*{1}(\S(?:.*?\S)?)\*{1}` "$1" -}} {{ $rendered_text = $rendered_text | emojify -}} |