Skip to content

Commit 3c9e2e6

Browse files
committed
Fix link path to go to one level up
1 parent fcfd594 commit 3c9e2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,6 @@ export const rewriteRelativeMdLinks = (markdownText: string): string => {
278278
*/
279279
const regexPattern: RegExp = /\[([^\]]+)\]\((.?\/?[^)]+)\.md\)/g;
280280
return markdownText.replace(regexPattern, (_match, linkText, url) => {
281-
return `[${linkText}](${url}/)`;
281+
return `[${linkText}](.${url}/)`;
282282
});
283283
};

0 commit comments

Comments
 (0)