From 3282048df2640706516a42bff070dafcf5066366 Mon Sep 17 00:00:00 2001 From: mgmeyers Date: Sun, 2 Jul 2023 16:09:39 -0700 Subject: [PATCH] Fix #208 --- manifest.json | 2 +- src/DataExplorerView.tsx | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 993cc0b..b3d8806 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-zotero-desktop-connector", "name": "Zotero Integration", - "version": "2.3.10", + "version": "2.3.11", "minAppVersion": "1.1.1", "description": "Insert and import citations, bibliographies, notes, and PDF annotations from Zotero.", "author": "mgmeyers", diff --git a/src/DataExplorerView.tsx b/src/DataExplorerView.tsx index 9d28ee2..c468ff8 100644 --- a/src/DataExplorerView.tsx +++ b/src/DataExplorerView.tsx @@ -1,4 +1,10 @@ -import { ItemView, TFile, WorkspaceLeaf, moment } from 'obsidian'; +import { + ItemView, + TFile, + WorkspaceLeaf, + moment, + normalizePath, +} from 'obsidian'; import React from 'react'; import ReactDOM from 'react-dom'; import { JSONTree } from 'react-json-tree'; @@ -124,8 +130,8 @@ function TemplatePreview({ templateData ); - const markdownPath = sanitizeFilePath( - removeStartingSlash(renderedPath) + const markdownPath = normalizePath( + sanitizeFilePath(removeStartingSlash(renderedPath)) ); const existingMarkdownFile =