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 6, 2024
1 parent 8f1410b commit eb60fe3
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 @@ -11,11 +11,11 @@ BEGIN {

match($0, /^#+/) { handleTitle(RLENGTH, 1) }

function handleTitle(h,pass, md,indent,dir,i,path) {
function handleTitle(h,pass, indent,dir,i,path) {
if (Title) {
for (i = 2; i < H; i++)
dir = dir (dir ? "-" : "") fname(PathElements[i])
path = dir (dir ? "-" : "") (md = fname(Title) ".md")
path = dir (dir ? "-" : "") fname(Title) ".md"
if (pass == 1) {
Link2Path[linkify(Title)] = path
} else {
Expand Down

0 comments on commit eb60fe3

Please sign in to comment.