Skip to content

Commit

Permalink
Create site with documentation #164
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Mar 7, 2024
1 parent 76dab65 commit c8f1262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdbooker.awk
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand All @@ -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 }
Expand Down

0 comments on commit c8f1262

Please sign in to comment.