From bff59497009cfc9b30530be4e6583fde9208c373 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 30 Jul 2022 12:00:05 +0100 Subject: fix HTML inline processing for list elements --- lib/html.source.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/html.source.sh') diff --git a/lib/html.source.sh b/lib/html.source.sh index c303d2e..ac604c9 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -98,7 +98,8 @@ html::fromgmi () { while IFS='' read -r line; do if [[ "$is_list" == yes ]]; then if [[ "$line" == '* '* ]]; then - echo "
  • $(html::encode "${line/\* /}")
  • " + echo "
  • $(html::encode "${line/\* /}")
  • " | + html::process_inline else is_list=no echo "" @@ -110,7 +111,7 @@ html::fromgmi () { echo "
    " is_plain=no else - html::encode "$line" + html::encode "$line" | html::process_inline fi continue fi -- cgit v1.2.3 From 4c4f379ea616eeec320ec27776c739fadf70d2da Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 20 Nov 2022 10:30:13 +0000 Subject: dont format inline in plain block --- lib/html.source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/html.source.sh') diff --git a/lib/html.source.sh b/lib/html.source.sh index ac604c9..03bbb45 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -111,7 +111,7 @@ html::fromgmi () { echo "
    " is_plain=no else - html::encode "$line" | html::process_inline + html::encode "$line" fi continue fi -- cgit v1.2.3