match( text, /^\[[xX]\]/) ? "<li class=\"task done\"><input type=checkbox disabled checked>" : "<li>";
sub(/^\[[-? /xX]\]/, "", text);
- text = _block( text );
+ text = _nblock( text );
if (match( text, "^<p>(</p[^>]|</[^p]|<[^/]|[^<])*</p>\n$" ))
gsub( "(^<p>|</p>\n$)", "", text);
sub( "^ ? ? ?:(\t| +)", "", text);
gsub( "(^|\n) {0," indent "}", "\n", text );
- text = _block(text);
+ text = _nblock(text);
if (match( text, "^<p>(</p[^>]|</[^p]|<[^/]|[^<])*</p>\n$" ))
gsub( "(^<p>|</p>\n$)", "", text);