diff options
1 files changed, 8 insertions, 5 deletions
| -rw-r--r-- | single.awk | 13 |
@@ -155,6 +155,14 @@ blockquote_level > 0 && empty0 { } /^>$/ { $0 = ""; not_paragraph = 1 } +# Code blocks (ending) +inside_codeblock && ! /^[ \t]*$)/ { + PNappnd("</code></pre>") + inside_codeblock = 0 + emptyP1 = 1 + not_paragraph = 1 +} + # Lists function end_list() { if (list_level == 0) return @@ -248,11 +256,6 @@ list_started && /^\[[x ]\][ \t]/ { _next() } -inside_codeblock && ! /^[ \t]*$/ { - PNappnd("</code></pre>") - inside_codeblock = 0 - emptyP1 = 1 -} # Automatic links /<[^ \t<>]+>/ { |
