diff --git a/pandoc.ts b/pandoc.ts index d680a68..1ba1e82 100644 --- a/pandoc.ts +++ b/pandoc.ts @@ -139,7 +139,7 @@ export const pandoc = async (input: PandocInput, output: PandocOutput, extraPara if (input.metadataFile) args.push('--metadata-file', input.metadataFile); // Extra parameters if (extraParams) { - extraParams = extraParams.flatMap(x => x.split(' ')).filter(x => x.length); + extraParams = extraParams.flatMap(x => x).filter(x => x.length); args.push(...extraParams); }