From c8f126207c17e08dfa6caa1c7d3487211573877f Mon Sep 17 00:00:00 2001 From: xonix Date: Thu, 7 Mar 2024 02:10:54 +0200 Subject: [PATCH] Create site with documentation #164 --- mdbooker.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdbooker.awk b/mdbooker.awk index c142474..5e18906 100644 --- a/mdbooker.awk +++ b/mdbooker.awk @@ -29,7 +29,7 @@ function handleTitle(h,pass, indent,dir,i,path) { Content = "# " (Title = PathElements[H = h] = trim(substr($0, h + 1))) } -END { handleTitle(-1, 1); pass2() } +END { handleTitle(0, 1); pass2() } function pass2( l,f,t) { Title = Content = "" @@ -50,7 +50,7 @@ function pass2( l,f,t) { Content = Content "\n" l } } - handleTitle(-1, 2) + handleTitle(0, 2) } function linkify(t) { t = tolower(t); gsub(/ /, "-", t); gsub(/[^-a-z0-9_]/, "", t); return t }