Skip to content

Commit

Permalink
fix: export option in headmatter not working (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Mar 19, 2024
1 parent 5480829 commit 870ee8a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/slidev/node/commands/export.ts
Expand Up @@ -3,6 +3,7 @@ import { Buffer } from 'node:buffer'
import fs from 'fs-extra'
import { blue, cyan, dim, green, yellow } from 'kolorist'
import { Presets, SingleBar } from 'cli-progress'
import { clearUndefined } from '@antfu/utils'
import { parseRangeString } from '@slidev/parser/core'
import type { ExportArgs, ResolvedSlidevOptions, SlideInfo, TocItem } from '@slidev/types'
import { outlinePdfFactory } from '@lillallol/outline-pdf'
Expand Down Expand Up @@ -466,10 +467,12 @@ export function getExportOptions(args: ExportArgs, options: ResolvedSlidevOption
const config = {
...options.data.config.export,
...args,
withClicks: args['with-clicks'],
executablePath: args['executable-path'],
withToc: args['with-toc'],
perSlide: args['per-slide'],
...clearUndefined({
withClicks: args['with-clicks'],
executablePath: args['executable-path'],
withToc: args['with-toc'],
perSlide: args['per-slide'],
}),
}
const {
entry,
Expand Down

0 comments on commit 870ee8a

Please sign in to comment.