diff options
1 files changed, 6 insertions, 6 deletions
| -rw-r--r-- | single.awk | 12 |
@@ -124,6 +124,12 @@ BEGIN { } } +# Horizontal rule +/^(---+|- - -( -)*|\*\*\*+|\* \* \*( \*)*|___+|_ _ _( _)*)$/ { + $0 = "<hr/>" + not_paragraph = 1 +} + # Blockquotes blockquote_level > 0 && empty0 { for (P1 = P1 ORS; blockquote_level > 0; --blockquote_level) { @@ -239,12 +245,6 @@ inside_codeblock && ! /^[ \t]*$/ { not_paragraph = 1 } -# Horizontal rule -/^(---+|- - -( -)*|\*\*\*+|\* \* \*( \*)*|___+|_ _ _( _)*)$/ { - $0 = "<hr/>" - not_paragraph = 1 -} - # Emphasis function surround(brace, left, right, blen) { if (blen == "") { blen = length(brace) } |
