From 56e895fe4c5d19ccc4d65e5671358ce8e04a0380 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 1 Jan 2025 10:41:21 +0200 Subject: chore(single): Move horizontal rule above blockquotes This will be useful for lists --- single.awk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'single.awk') 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 = "
" + 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 = "
" - not_paragraph = 1 -} - # Emphasis function surround(brace, left, right, blen) { if (blen == "") { blen = length(brace) } -- cgit v1.3.1-23-gd82d