You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`[standardInternalLinkConversion] Could not parse link ${url} as a Notion URL`
18
+
);
19
+
returnundefined;
20
+
}
21
+
constid=match[1];
22
+
constpages=context.pages;
23
+
// find the page where pageId matches hrefFromNotion
24
+
consttargetPage=pages.find(p=>{
25
+
returnp.matchesLinkId(id);
26
+
});
27
+
28
+
if(!targetPage){
29
+
// About this situation. See https://github.com/sillsdev/docu-notion/issues/9
30
+
warning(
31
+
`[standardInternalLinkConversion] Could not find the target of this link. Note that links to outline sections are not supported. ${url}. https://github.com/sillsdev/docu-notion/issues/9`
32
+
);
33
+
returnundefined;
34
+
}
35
+
returnconvertLinkHref(context,targetPage,url);
36
+
}
37
+
38
+
// handles the whole markdown link, including the label
Copy file name to clipboardExpand all lines: tsconfig.json
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,9 @@
46
46
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
47
47
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
48
48
// "typeRoots": [], /* List of folders to include type definitions from. */
49
-
// "types": [], /* Type declaration files to be included in compilation. */
49
+
"types": [
50
+
"vitest/globals"
51
+
],
50
52
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
51
53
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
52
54
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
0 commit comments