From: Paul Hänsch Date: Tue, 29 Aug 2023 22:37:43 +0000 (+0200) Subject: fix: block nesting in lists X-Git-Url: http://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=ca22f379dcbc2047479fd165d56f8c5c938dac43 fix: block nesting in lists --- diff --git a/markdown.awk b/markdown.awk index 91a7956..5915f01 100755 --- a/markdown.awk +++ b/markdown.awk @@ -763,7 +763,7 @@ function _list (block, mark, LOCAL, len, st, text, indent, task) { match( text, /^\[[xX]\]/) ? "
  • " : "
  • "; sub(/^\[[-? /xX]\]/, "", text); - text = _block( text ); + text = _nblock( text ); if (match( text, "^

    (]|\n$" )) gsub( "(^

    |

    \n$)", "", text); @@ -786,7 +786,7 @@ function _dlist (block, LOCAL, len, st, text, indent, p) { sub( "^ ? ? ?:(\t| +)", "", text); gsub( "(^|\n) {0," indent "}", "\n", text ); - text = _block(text); + text = _nblock(text); if (match( text, "^

    (]|\n$" )) gsub( "(^

    |

    \n$)", "", text);