]> git.plutz.net Git - cgilite/blobdiff - markdown.awk
fix: task list unsure
[cgilite] / 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$" ))