Skip to content

Commit eee790d

Browse files
committed
pdf-engine is in format.pandoc not metadata
1 parent 433c7c3 commit eee790d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/render/filters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ function citeMethod(options: PandocOptions): CiteMethod | null {
838838

839839
function pdfEngine(options: PandocOptions): string {
840840
const pdfEngine = options.flags?.pdfEngine ||
841-
options.metadata?.[kPdfEngine] as string ||
841+
options.format.pandoc?.[kPdfEngine] as string ||
842842
"pdflatex";
843843
return pdfEngine;
844844
}

0 commit comments

Comments
 (0)