Skip to content

Commit

Permalink
Create site with documentation #164 : fix #links
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Mar 6, 2024
1 parent b924bcf commit 40fc413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mdbooker.awk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ END { handleTitle(-1, 1); pass2() }
function pass2( l) {
Title = Content = ""
while (getline < FILENAME > 0) {
if (match($0, /^#+/)) { handleTitle(RLENGTH, 2) }
if (match($0, /^#+/))
handleTitle(RLENGTH, 2)
else {
if (match(l = $0, /]\(#[^)]+\)/))
l = substr(l, 1, RSTART - 1) "](" Link2Path[substr(l, RSTART + 3, RLENGTH - 4)] ")" substr(l, RSTART + RLENGTH)
Expand Down

0 comments on commit 40fc413

Please sign in to comment.