From 9d042571499c4194baa46e21f87a4c37cd71627d Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 7 Jun 2024 08:31:29 +0200 Subject: [PATCH] Fixes #856 --- plugs/editor/navigate.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugs/editor/navigate.ts b/plugs/editor/navigate.ts index f558aa6b..494e17aa 100644 --- a/plugs/editor/navigate.ts +++ b/plugs/editor/navigate.ts @@ -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": {