diff options
1 files changed, 5 insertions, 3 deletions
| -rw-r--r-- | single.awk | 8 |
@@ -241,9 +241,6 @@ list_started && /^\[[x ]\][ \t]/ { # Code blocks /^( |\t)/ { - if (!inside_codeblock) { - P1 = P1 "<pre><code>" - inside_codeblock = 1 } ## Autoescape & and < @@ -254,6 +251,11 @@ list_started && /^\[[x ]\][ \t]/ { gsub(/</, "\\<") gsub(/>/, "\\>") + if (!inside_codeblock) { + $0 = "<pre><code>" $0 + inside_codeblock = 1 + } + _next() } |
