diff --git a/pandoc.ts b/pandoc.ts index dc6cf80..742417c 100644 --- a/pandoc.ts +++ b/pandoc.ts @@ -110,6 +110,9 @@ export const pandoc = async (input: PandocInput, output: PandocOutput, extraPara // Construct the Pandoc arguments list let args: string[] = []; + args.push('--resource-path') + args.push(path.dirname(input.file)) + if (input.format) { args.push('--from'); args.push(input.format);