From 69a7a254d416ba6489ddc69cd1a7d62429c99663 Mon Sep 17 00:00:00 2001 From: Valerie Burzynski Date: Fri, 22 Mar 2024 18:56:14 -0500 Subject: [PATCH] fix: use wikilinks when enabled --- main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 914bd54..45e5d3f 100644 --- a/main.ts +++ b/main.ts @@ -310,8 +310,9 @@ export default class Waypoint extends Plugin { if (folderNote instanceof TFile) { if (this.settings.useWikiLinks) { text = `${bullet} **[[${folderNote.basename}]]**`; + } else { + text = `${bullet} **[${folderNote.basename}](${this.getEncodedUri(rootNode, folderNote)})**`; } - text = `${bullet} **[${folderNote.basename}](${this.getEncodedUri(rootNode, folderNote)})**`; if (!topLevel) { if (this.settings.stopScanAtFolderNotes) { return text;