From fb88510e7c955308c1321678f97a8f7d47b92efd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 30 Aug 2023 00:38:02 +0200 Subject: [PATCH] Squashed 'cgilite/' changes from 1f4a5e20..ca22f379 ca22f379 fix: block nesting in lists git-subtree-dir: cgilite git-subtree-split: ca22f379dcbc2047479fd165d56f8c5c938dac43 --- markdown.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2