Skip to content

Commit 38c6351

Browse files
committed
fix: reorder xform
1 parent f5a8def commit 38c6351

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/myst-cli/src/process/mdast.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)