diff options
| author | Paul Buetow <paul@buetow.org> | 2022-07-30 12:00:05 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-07-30 12:00:05 +0100 |
| commit | bff59497009cfc9b30530be4e6583fde9208c373 (patch) | |
| tree | c975a170bc37127af3fd79c878eb70592b0b75d6 /lib | |
| parent | 0064164a5e5e3435cf2a7fb484be9761fc974691 (diff) | |
fix HTML inline processing for list elements
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/html.source.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 "<li>$(html::encode "${line/\* /}")</li>" + echo "<li>$(html::encode "${line/\* /}")</li>" | + html::process_inline else is_list=no echo "</ul>" @@ -110,7 +111,7 @@ html::fromgmi () { echo "</pre><br />" is_plain=no else - html::encode "$line" + html::encode "$line" | html::process_inline fi continue fi |
