pull/882/head
Zef Hemel 2024-06-07 08:31:29 +02:00
parent 60461cf2db
commit 9d04257149
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ async function actionClickOrActionEnter(
}
}
const currentPage = await editor.getCurrentPage();
console.log("CLicked got", mdTree);
switch (mdTree.type) {
case "WikiLink": {
const link = mdTree.children![1]!.children![0].text!;
@ -69,6 +70,7 @@ async function actionClickOrActionEnter(
return editor.navigate({ page: pageName, pos: 0 }, false, inNewWindow);
}
case "NakedURL":
case "URL":
return editor.openUrl(mdTree.children![0].text!);
case "Image":
case "Link": {