]> git.plutz.net Git - cgilite/commitdiff
fix: task list unsure
authorPaul Hänsch <paul@plutz.net>
Tue, 29 Aug 2023 22:21:06 +0000 (00:21 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 29 Aug 2023 22:21:06 +0000 (00:21 +0200)
markdown.awk

index 949ea9390f8450e8982b10945854f29076bde118..91a7956c96cb67e5667b9291b930843d3e0a1376 100755 (executable)
@@ -761,7 +761,7 @@ function _list (block, mark, LOCAL, len, st, text, indent, task) {
          match( text, /^\[\/\]/  ) ? "<li class=\"task partial\"><input type=checkbox disabled>"      : \
          match( text, /^\[\?\]/  ) ? "<li class=\"task unsure\"><input type=checkbox disabled>"       : \
          match( text, /^\[[xX]\]/) ? "<li class=\"task done\"><input type=checkbox disabled checked>" : "<li>";
-  sub(/^\[[- /xX]\]/, "", text);
+  sub(/^\[[-? /xX]\]/, "", text);
 
   text = _block( text );
   if (match( text, "^<p>(</p[^>]|</[^p]|<[^/]|[^<])*</p>\n$" ))