@@ -317,7 +317,7 @@ export async function runPandoc(
317317 const htmlPostprocessors : Array < HtmlPostProcessor > = [ ] ;
318318 const htmlFinalizers : Array < ( doc : Document ) => Promise < void > > = [ ] ;
319319 const htmlRenderAfterBody : string [ ] = [ ] ;
320- const dependenciesFile = options . temp . createFile ( ) ;
320+ const dependenciesFile = options . services . temp . createFile ( ) ;
321321
322322 if (
323323 sysFilters . length > 0 || options . format . formatExtras ||
@@ -329,7 +329,7 @@ export async function runPandoc(
329329 options . source ,
330330 options . flags || { } ,
331331 options . format ,
332- options . temp ,
332+ options . services ,
333333 ) )
334334 : { } ;
335335
@@ -340,9 +340,8 @@ export async function runPandoc(
340340 options . flags || { } ,
341341 options . format ,
342342 options . libDir ,
343- options . temp ,
343+ options . services ,
344344 options . offset ,
345- options . extension ,
346345 options . project ,
347346 ) )
348347 : { } ;
@@ -353,7 +352,7 @@ export async function runPandoc(
353352 options . format ,
354353 cwd ,
355354 options . libDir ,
356- options . temp ,
355+ options . services . temp ,
357356 dependenciesFile ,
358357 options . project ,
359358 ) ;
@@ -619,7 +618,7 @@ export async function runPandoc(
619618 if ( extras . html ?. [ kBodyEnvelope ] && projectExtras . html ?. [ kBodyEnvelope ] ) {
620619 extras . html [ kBodyEnvelope ] = projectExtras . html [ kBodyEnvelope ] ;
621620 }
622- resolveBodyEnvelope ( allDefaults , extras , options . temp ) ;
621+ resolveBodyEnvelope ( allDefaults , extras , options . services . temp ) ;
623622
624623 // add any filters
625624 allDefaults . filters = [
@@ -694,10 +693,10 @@ export async function runPandoc(
694693 }
695694
696695 // filter results json file
697- const filterResultsFile = options . temp . createFile ( ) ;
696+ const filterResultsFile = options . services . temp . createFile ( ) ;
698697
699698 // timing results json file
700- const timingResultsFile = options . temp . createFile ( ) ;
699+ const timingResultsFile = options . services . temp . createFile ( ) ;
701700
702701 if ( allDefaults . to ?. match ( / [ . ] l u a $ / ) ) {
703702 formatFilterParams [ "custom-writer" ] = allDefaults . to ;
@@ -809,7 +808,10 @@ export async function runPandoc(
809808
810809 // write the defaults file
811810 if ( allDefaults ) {
812- const defaultsFile = await writeDefaultsFile ( allDefaults , options . temp ) ;
811+ const defaultsFile = await writeDefaultsFile (
812+ allDefaults ,
813+ options . services . temp ,
814+ ) ;
813815 cmd . push ( "--defaults" , defaultsFile ) ;
814816 }
815817
@@ -933,7 +935,7 @@ export async function runPandoc(
933935 keepSourceBlock ( options . format , options . source ) ;
934936
935937 // write input to temp file and pass it to pandoc
936- const inputTemp = options . temp . createFile ( {
938+ const inputTemp = options . services . temp . createFile ( {
937939 prefix : "quarto-input" ,
938940 suffix : ".md" ,
939941 } ) ;
@@ -956,7 +958,7 @@ export async function runPandoc(
956958 // This gives the semantics we want, as our metadata is 'logically' at the top of the
957959 // file and subsequent blocks within the file should indeed override it (as should
958960 // user invocations of --metadata-file or -M, which are included below in pandocArgs)
959- const metadataTemp = options . temp . createFile ( {
961+ const metadataTemp = options . services . temp . createFile ( {
960962 prefix : "quarto-metadata" ,
961963 suffix : ".yml" ,
962964 } ) ;
0 commit comments