@@ -195,6 +195,12 @@ export async function transformMdast(
195195 log : session . log ,
196196 } ) ;
197197 }
198+ transformRenderInlineExpressions ( mdast , vfile ) ;
199+ await transformOutputsToCache ( session , mdast , kind , { minifyMaxCharacters } ) ;
200+ liftOutputs ( session , mdast , vfile , {
201+ parseMyst : ( content : string ) => parseMyst ( session , content , file ) ,
202+ } ) ;
203+ transformFilterOutputStreams ( mdast , vfile , frontmatter . settings ) ;
198204
199205 const pipe = unified ( )
200206 . use ( reconstructHtmlPlugin ) // We need to group and link the HTML first
@@ -239,12 +245,6 @@ export async function transformMdast(
239245 // Combine file-specific citation renderers with project renderers from bib files
240246 const fileCitationRenderer = combineCitationRenderers ( cache , ...rendererFiles ) ;
241247
242- transformRenderInlineExpressions ( mdast , vfile ) ;
243- await transformOutputsToCache ( session , mdast , kind , { minifyMaxCharacters } ) ;
244- liftOutputs ( session , mdast , vfile , {
245- parseMyst : ( content : string ) => parseMyst ( session , content , file ) ,
246- } ) ;
247- transformFilterOutputStreams ( mdast , vfile , frontmatter . settings ) ;
248248 transformCitations ( session , file , mdast , fileCitationRenderer , references ) ;
249249 await unified ( )
250250 . use ( codePlugin , { lang : frontmatter ?. kernelspec ?. language } )
0 commit comments