Summary Files Commits Branches @commit @diff @stats
path: root / single.awk
diff options
context:
space:
mode:
1 files changed, 6 insertions, 6 deletions
-rw-r--r--single.awk12
diff --git a/single.awk b/single.awk
index a27d61c..5608522 100644
--- a/single.awk
+++ b/single.awk
@@ -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) }