diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-02-04 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2024-02-04 00:00:00 +0000 |
commit | b61c25ce04c324b5d19173b24d4c0dd611f1c207668d292b913cb6d83f294319 (patch) | |
tree | 1bc8814d0ab8686615f2165009c80df1d3f1647c534d4bf8b000ca41dfd5a3bb /layouts/_default | |
parent | e57eee77715fd134edcfcdcf19ec8cd0068d663c97ea56323275316d329c624c (diff) | |
download | hugo-theme-journal-b61c25ce04c324b5d19173b24d4c0dd611f1c207668d292b913cb6d83f294319.tar.gz hugo-theme-journal-b61c25ce04c324b5d19173b24d4c0dd611f1c207668d292b913cb6d83f294319.zip |
Add missing multiline regex option for ol's
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/single.gmi | 2 |
1 files changed, 1 insertions, 1 deletions
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 -}} |