Skip to content

Commit 8607772

Browse files
committed
docs: add note about precedence
1 parent d9c7445 commit 8607772

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/myst-cli/src/transforms/outputs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ export function liftOutputs(
8383
const cache = castSession(session);
8484
selectAll('output', mdast).forEach((output) => {
8585
let children: GenericNode[] | undefined;
86+
// Walk over the outputs, and take the first matching "high-priority" output type
87+
// Given that the `IOutput.data` mapping is not ordered, the precedence between sibling
88+
// MIME type keys (e.g. LaTeX vs Markdown) is not defined for now.
8689
walkOutputs([(output as any).jupyter_data], (obj: any) => {
8790
if (children) {
8891
return;

0 commit comments

Comments
 (0)