Skip to content

Commit 303c13d

Browse files
committed
use more conservative syntax, don't add option when resourcePath is [] specifically
1 parent d18eb46 commit 303c13d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/pandoc/self-contained.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export const pandocIngestSelfContainedContent = async (
3636
cmd.push("--output", filename);
3737
cmd.push("--metadata", "title=placeholder");
3838
cmd.push("--embed-resources");
39-
resourcePath ? cmd.push("--resource-path", resourcePath.join(":")) : null;
39+
if (resourcePath && resourcePath.length) {
40+
cmd.push("--resource-path", resourcePath.join(":"));
41+
}
4042
const result = await execProcess({
4143
cmd,
4244
stdout: "piped",

0 commit comments

Comments
 (0)