File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ import { resourcePath } from "../../../core/resources.ts";
9292import { PandocAttr , PartitionedMarkdown } from "../../../core/pandoc/types.ts" ;
9393import { stringify } from "../../../core/yaml.ts" ;
9494import { waitUntilNamedLifetime } from "../../../core/lifetimes.ts" ;
95+ import { safeCloneDeep } from "../../../core/safe-clone-deep.ts" ;
9596
9697export function bookPandocRenderer (
9798 options : RenderOptions ,
@@ -381,7 +382,7 @@ async function mergeExecutedFiles(
381382 files : ExecutedFile [ ] ,
382383) : Promise < ExecutedFile > {
383384 // base context on the first file (which has to be index.md in the root)
384- const context = ld . cloneDeep ( files [ 0 ] . context ) as RenderContext ;
385+ const context = safeCloneDeep ( files [ 0 ] . context ) ;
385386
386387 // use global render options
387388 context . options = removePandocTo ( options ) ;
You can’t perform that action at this time.
0 commit comments