Skip to content

Commit e3e5532

Browse files
committed
avoid cryptic error message because of internal function not handling null value
There could be a null value of someone does ```` format: html: null ```` or ```` format: html: ```` This is caught by YAML validation, but validation of YAML could happen after format resolution.
1 parent e14d224 commit e3e5532

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/command/render/render-contexts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ function mergeQuartoConfigs(
362362

363363
// bibliography needs to always be an array so it can be merged
364364
const fixupMergeableScalars = (metadata: Metadata) => {
365+
if (metadata === null) return metadata;
365366
[
366367
kBibliography,
367368
kCss,

0 commit comments

Comments
 (0)