Fixes path, image, and bibliography issues #7

Merged
AlexKucera merged 19 commits from windows_path_fix into master 2025-11-05 09:28:22 +01:00
Showing only changes of commit a9f436f972 - Show all commits
+3 -4
View File
1
@@ -207,7 +207,7 @@ export class TempDirectoryManager {
// Use path.join to properly handle absolute paths
const result = path.join(pluginDir, dirName);
return normalizePath(path.normalize(result));
return normalizePath(result);
}
/**
@@ -442,10 +442,9 @@ export class TempDirectoryManager {
public isPluginTempDir(dirPath: string): boolean {
const pluginDir = this.getPluginDir();
const normalizedDirPath = normalizePath(dirPath);
const normalizedPluginDir = normalizePath(pluginDir);
const tempImagesDir = normalizePath(path.join(normalizedPluginDir, PLUGIN_DIRS.TEMP_IMAGES));
const tempPandocDir = normalizePath(path.join(normalizedPluginDir, PLUGIN_DIRS.TEMP_PANDOC));
const tempImagesDir = normalizePath(path.join(pluginDir, PLUGIN_DIRS.TEMP_IMAGES));
const tempPandocDir = normalizePath(path.join(pluginDir, PLUGIN_DIRS.TEMP_PANDOC));
return normalizedDirPath.startsWith(tempImagesDir) ||
normalizedDirPath.startsWith(tempPandocDir);