Summary Files Commits Branches @commit @diff @stats
path: root / single.awk
diff options
context:
space:
mode:
1 files changed, 8 insertions, 5 deletions
-rw-r--r--single.awk13
diff --git a/single.awk b/single.awk
index 2a92373..60e32ae 100644
--- a/single.awk
+++ b/single.awk
@@ -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<>]+>/ {