From 3a9a2c33f70a19a87d56d3db2c613c029f91032f Mon Sep 17 00:00:00 2001 From: Catalin Costache Date: Tue, 26 Nov 2024 09:18:38 +0200 Subject: [PATCH] fix: release build without raycast folder --- .github/workflows/main.yml | 1 + package.json | 2 +- raycast/src/bookmarks.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8535136..119fe2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,6 +22,7 @@ jobs: - name: Build id: build run: | + rm -rf raycast # remove the raycast folder npm install npm run build --if-present mkdir ${{ env.PLUGIN_NAME }} diff --git a/package.json b/package.json index bf7fb54..b57870d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-tree-search", - "version": "0.9.4", + "version": "0.9.5", "description": "Quickly search trees of lines in Obsidian", "main": "main.js", "scripts": { diff --git a/raycast/src/bookmarks.tsx b/raycast/src/bookmarks.tsx index fe7c934..05bdfd9 100644 --- a/raycast/src/bookmarks.tsx +++ b/raycast/src/bookmarks.tsx @@ -179,7 +179,7 @@ function RaycastTokenRenderer(tokens: Token[], actions: ReactNode[]): string { } if (token.type == "link_open") { - const href = token.attrs?.[0]?.[1] || "#"; + const href = decodeURI(token.attrs?.[0]?.[1] || "#"); const content = tokens[1]?.content; actions.push(