Skip to content

Commit

Permalink
feat: add relative path resolution for links
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed Apr 26, 2024
1 parent b33d9f6 commit 08a2b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transform/headings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function getFlatListHeadings(tokens: Token[], href: string) {
}

headings.push({
title: href + getTitle(tokens[i + 1]),
href: getHref(tokens[i]),
title: getTitle(tokens[i + 1]),
href: href + getHref(tokens[i]),
level,
});
}
Expand Down

0 comments on commit 08a2b9b

Please sign in to comment.