diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.gmi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index e6d6fdf..587687c 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -80,6 +80,9 @@ {{/* convert alternative unordered lists symbols to asterisks */ -}} {{ $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 | emojify -}} {{/* demux regex matches above and below preformatted text */ -}} |