From b7e7900eac93fc2ef160df95f6b9b55dba8c299f Mon Sep 17 00:00:00 2001 From: xonix Date: Tue, 5 Mar 2024 02:48:30 +0200 Subject: [PATCH] Create site with documentation #164 --- mdbooker.awk | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mdbooker.awk b/mdbooker.awk index 5f24e02..475c12d 100644 --- a/mdbooker.awk +++ b/mdbooker.awk @@ -5,11 +5,7 @@ BEGIN { delete PathElements } -/^# / { handleTitle(1); next } -/^## / { handleTitle(2); next } -/^### / { handleTitle(3); next } -/^#### / { handleTitle(4); next } -/^#####/ { print "error: #####"; exit 1 } +match($0, /^#+/) { handleTitle(RLENGTH); next } { Content = Content "\n" $0; next } function handleTitle(h, md,indent,dir,i,path) {