diff --git a/src/config.ts b/src/config.ts index f29821d8..e4526a23 100644 --- a/src/config.ts +++ b/src/config.ts @@ -181,7 +181,7 @@ export class MarpCLIConfig { const pdfNotes = !!(this.args.pdfNotes || this.conf.pdfNotes) const pdfOutlines = - this.args.pdfOutlines ?? this.conf.pdfOutlines + (this.args.pdfOutlines ?? this.conf.pdfOutlines) ? (() => { const defaultPdfOutlines = { pages: true, headings: true } as const const getConf = (key: keyof typeof defaultPdfOutlines) => {