mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-23 23:35:57 +02:00
Fix Windows relative image resolution (#215)
This commit is contained in:
@@ -2793,7 +2793,8 @@
|
||||
// Standard markdown: resolve relative paths against the note's directory
|
||||
const notePath = $activeNotePath;
|
||||
if (notePath) {
|
||||
const noteDir = notePath.substring(0, notePath.lastIndexOf('/'));
|
||||
const normalizedNotePath = notePath.replace(/\\/g, '/');
|
||||
const noteDir = normalizedNotePath.substring(0, normalizedNotePath.lastIndexOf('/'));
|
||||
return convertFileSrc(normalizePath(`${noteDir}/${decoded}`));
|
||||
}
|
||||
// Last fallback: vault root
|
||||
|
||||
Reference in New Issue
Block a user