X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=markdown.awk;h=5915f011ece716dc8ab33825017226bf368e3a19;hb=ca22f379dcbc2047479fd165d56f8c5c938dac43;hp=949ea9390f8450e8982b10945854f29076bde118;hpb=fc47d5d7118fe570dad487482789e7447004f4f9;p=cgilite diff --git a/markdown.awk b/markdown.awk index 949ea93..5915f01 100755 --- a/markdown.awk +++ b/markdown.awk @@ -761,9 +761,9 @@ 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 ); + 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);