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 5, 2024
1 parent 52277d3 commit b7e7900
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mdbooker.awk
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b7e7900

Please sign in to comment.