From b61c25ce04c324b5d19173b24d4c0dd611f1c207668d292b913cb6d83f294319 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sun, 4 Feb 2024 00:00:00 +0000 Subject: Add missing multiline regex option for ol's --- layouts/_default/single.gmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default') diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 8cfc741..fa42e65 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -81,7 +81,7 @@ {{ $rendered_text = $rendered_text | replaceRE `(?m)^[-+] ` "* " -}} {{/* convert Markdown ordered list item to gemtext unordered list item /* -}} - {{ $rendered_text = $rendered_text | replaceRE `^[1-9]\d*\.[\t ]+(.*?)[\t ]*$` "* $1" -}} + {{ $rendered_text = $rendered_text | replaceRE `(?m)^[1-9]\d*\.[\t ]+(.*?)[\t ]*$` "* $1" -}} {{ $rendered_text = $rendered_text | emojify -}} -- cgit v1.2.3