fix: remove extra quotes from pandoc resource path arguments

- Remove manual quotes around templatesDir path in PandocCommandBuilder
- Node.js spawn() handles argument quoting automatically
- Manual quotes can break path resolution, especially on Windows
- Follows Node.js best practices for child_process.spawn()

CodeRabbit suggestion implementation 1/6
This commit is contained in:
Jarvis committed 2025-09-25 13:43:13 +02:00
1 parent c971c920ce
commit 3782f0a7fb
1 file changed
+2 -2
@@ -109,8 +109,8 @@ export class PandocCommandBuilder {
// Add plugin templates directory as a resource path so Typst can find template files // Add plugin templates directory as a resource path so Typst can find template files
const templatesDir = pathUtils.joinPath(absolutePluginDir, 'templates'); const templatesDir = pathUtils.joinPath(absolutePluginDir, 'templates');
// Quote the path to handle spaces and special characters // Path quoting handled automatically by spawn
args.push('--resource-path', `"${templatesDir}"`); args.push('--resource-path', templatesDir);
// Pass the actual template path as a variable // Pass the actual template path as a variable
// Use relative path from vault root for Typst import // Use relative path from vault root for Typst import