From: Paul Hänsch Date: Tue, 29 Aug 2023 22:21:06 +0000 (+0200) Subject: fix: task list unsure X-Git-Url: http://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=1f4a5e20dd63d07a8993f6d502ba8092313f31e7 fix: task list unsure --- diff --git a/markdown.awk b/markdown.awk index 949ea93..91a7956 100755 --- a/markdown.awk +++ b/markdown.awk @@ -761,7 +761,7 @@ function _list (block, mark, LOCAL, len, st, text, indent, task) { match( text, /^\[\/\]/ ) ? "
  • " : \ match( text, /^\[\?\]/ ) ? "
  • " : \ match( text, /^\[[xX]\]/) ? "
  • " : "
  • "; - sub(/^\[[- /xX]\]/, "", text); + sub(/^\[[-? /xX]\]/, "", text); text = _block( text ); if (match( text, "^

    (]|\n$" ))