From: Paul Hänsch Date: Tue, 29 Aug 2023 22:38:02 +0000 (+0200) Subject: Squashed 'cgilite/' changes from 1f4a5e20..ca22f379 X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=fb88510e7c955308c1321678f97a8f7d47b92efd;p=shellwiki Squashed 'cgilite/' changes from 1f4a5e20..ca22f379 ca22f379 fix: block nesting in lists git-subtree-dir: cgilite git-subtree-split: ca22f379dcbc2047479fd165d56f8c5c938dac43 --- 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);