X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cgilite%2Fmarkdown.awk;h=5915f011ece716dc8ab33825017226bf368e3a19;hb=116a9fbba5874eec7efb4f2253844e8158fffde9;hp=949ea9390f8450e8982b10945854f29076bde118;hpb=b28e964ff968431ed498c5a66a231db4d94799f3;p=shellwiki diff --git a/cgilite/markdown.awk b/cgilite/markdown.awk index 949ea93..5915f01 100755 --- a/cgilite/markdown.awk +++ b/cgilite/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);