We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906f93c commit 0f4593bCopy full SHA for 0f4593b
packages/myst-cli/src/transforms/outputs.ts
@@ -262,15 +262,12 @@ export function reduceOutputs(
262
outputNode.type = '__delete__';
263
return;
264
}
265
- if (!outputNode.jupyter_data && !outputNode.children?.length) {
266
- outputNode.type = '__delete__';
267
- return;
268
- }
269
// Lift the `output` node into `Outputs`
270
outputNode.type = '__lift__';
271
272
// If the output already has children, we don't need to do anything
273
- if (outputNode.children?.length) {
+ // Or, if it has no output data (should not happen)
+ if (outputNode.children?.length || !outputNode.jupyter_data) {
274
275
276
0 commit comments