]> git.plutz.net Git - shellwiki/commitdiff
Merge commit 'fb88510e7c955308c1321678f97a8f7d47b92efd'
authorPaul Hänsch <paul@plutz.net>
Tue, 29 Aug 2023 22:38:02 +0000 (00:38 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 29 Aug 2023 22:38:02 +0000 (00:38 +0200)
1  2 
cgilite/markdown.awk

diff --combined cgilite/markdown.awk
index 91a7956c96cb67e5667b9291b930843d3e0a1376,5915f011ece716dc8ab33825017226bf368e3a19..5915f011ece716dc8ab33825017226bf368e3a19
@@@ -763,7 -763,7 +763,7 @@@ function _list (block, mark, LOCAL, len
           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);
  
@@@ -786,7 -786,7 +786,7 @@@ function _dlist (block, LOCAL, len, st
      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);