We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 318b1e3 commit 98dcbaaCopy full SHA for 98dcbaa
src/plugins/internalLinks.ts
@@ -70,8 +70,6 @@ function convertInternalLink(
70
return "**[Problem Internal Link]**";
71
}
72
73
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
74
- warning(`${hrefFromNotion}: ${JSON.stringify((targetPage as any).metadata.properties.Slug)}`)
75
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
76
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);
77
return `[${name}](${url})`;
0 commit comments