From af26f19f4ce34efce2e5e35a68d814e8b067c917 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 31 Dec 2024 11:23:44 +0200 Subject: fix(single): Improve formatting of definition lists --- single.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'single.awk') diff --git a/single.awk b/single.awk index b60535f..0d402fd 100644 --- a/single.awk +++ b/single.awk @@ -338,10 +338,11 @@ function surround(brace, opening, closing, blen, single_surround) { surround("`" , "" , "") } +# Definition lists !prev_blankline && /^: / { sub(/^

/, "", prev) sub(/^: /, "") - prev = "

" prev "
" ORS "
" $0 "
" + prev = "
" ORS prev ORS "
" ORS $0 ORS "
" blankline = 1 next } -- cgit v1.3.1-23-gd82d