@@ -53,7 +53,6 @@ export async function resolveSassBundles(
5353 inputDir : string ,
5454 extras : FormatExtras ,
5555 format : Format ,
56- temp : TempContext ,
5756 project : ProjectContext ,
5857) {
5958 extras = cloneDeep ( extras ) ;
@@ -159,11 +158,11 @@ export async function resolveSassBundles(
159158
160159 for ( const target of targets ) {
161160 let cssPath : string | undefined ;
162- cssPath = await compileSass ( target . bundles , temp ) ;
161+ cssPath = await compileSass ( target . bundles , project ) ;
163162 // First, Clean CSS
164163 cleanSourceMappingUrl ( cssPath ) ;
165164 // look for a sentinel 'dark' value, extract variables
166- const cssResult = await processCssIntoExtras ( cssPath , extras , temp ) ;
165+ const cssResult = await processCssIntoExtras ( cssPath , extras , project ) ;
167166 cssPath = cssResult . path ;
168167
169168 // it can happen that processing generate an empty css file (e.g quarto-html deps with Quarto CSS variables)
@@ -261,7 +260,7 @@ export async function resolveSassBundles(
261260 inputDir ,
262261 extras ,
263262 format ,
264- temp ,
263+ project ,
265264 hasDarkStyles ? "light" : "default" ,
266265 defaultStyle ,
267266 ) ;
@@ -272,7 +271,7 @@ export async function resolveSassBundles(
272271 inputDir ,
273272 extras ,
274273 format ,
275- temp ,
274+ project ,
276275 "dark" ,
277276 defaultStyle ,
278277 ) ;
@@ -291,7 +290,7 @@ async function resolveQuartoSyntaxHighlighting(
291290 inputDir : string ,
292291 extras : FormatExtras ,
293292 format : Format ,
294- temp : TempContext ,
293+ project : ProjectContext ,
295294 style : "dark" | "light" | "default" ,
296295 defaultStyle ?: "dark" | "light" ,
297296) {
@@ -381,7 +380,7 @@ async function resolveQuartoSyntaxHighlighting(
381380 rules : rules . join ( "\n" ) ,
382381 } ,
383382 } ] ,
384- temp ,
383+ project ,
385384 false ,
386385 ) ;
387386
@@ -500,8 +499,9 @@ interface CSSResult {
500499async function processCssIntoExtras (
501500 cssPath : string ,
502501 extras : FormatExtras ,
503- temp : TempContext ,
502+ project : ProjectContext ,
504503) : Promise < CSSResult > {
504+ const { temp } = project ;
505505 extras . html = extras . html || { } ;
506506
507507 const css = Deno . readTextFileSync ( cssPath ) ;
0 commit comments