Don't mark plug-space links as non-existent in the editor

This commit is contained in:
Zef Hemel
2023-07-12 11:07:14 +02:00
parent 1818bfad00
commit b615ccdff7
2 changed files with 11 additions and 6 deletions
+5 -2
View File
@@ -40,8 +40,11 @@ export function cleanWikiLinkPlugin(editor: Editor) {
break;
}
}
if (cleanPage === "" || cleanPage.startsWith("💭")) {
// Empty page name, or local @anchor use
if (
cleanPage === "" ||
editor.plugSpaceRemotePrimitives.isLikelyHandled(cleanPage)
) {
// Empty page name with local @anchor use or a link to a page that dynamically generated by a plug
pageExists = true;
}