Skip to content

Commit 98dcbaa

Browse files
committed
Remove link warning
1 parent 318b1e3 commit 98dcbaa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/plugins/internalLinks.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ function convertInternalLink(
7070
return "**[Problem Internal Link]**";
7171
}
7272

73-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
74-
warning(`${hrefFromNotion}: ${JSON.stringify((targetPage as any).metadata.properties.Slug)}`)
7573
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
7674
const url = `/docs${targetPage.layoutContext}/${((targetPage as any).metadata.properties.Slug == undefined || (targetPage as any).metadata.properties.Slug.rich_text.length == 0) ? (targetPage as any).metadata.properties.Name.title[0].plain_text : (targetPage as any).metadata.properties.Slug.rich_text[0].text.content }`.replace(" ", "-").replace(" ", "-")//convertLinkHref(context, targetPage, hrefFromNotion);
7775
return `[${name}](${url})`;

0 commit comments

Comments
 (0)