Skip to content

Commit 906f93c

Browse files
agoose77fwkoch
authored andcommitted
fix: rename outputs
1 parent cee428d commit 906f93c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/myst-transforms/src/blocks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe('Test blockMetadataTransform', () => {
138138
data: { key: 'value' },
139139
},
140140
[
141-
u('outputs', { identifier: 'my_label-output' }, [
141+
u('outputs', { identifier: 'my_label-outputs' }, [
142142
u('output', { identifier: 'my_label-output-0' }, 'We know what we are'),
143143
u('output', { identifier: 'my_label-output-1' }, 'but know not what we may be.'),
144144
]),

packages/myst-transforms/src/blocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function blockMetadataTransform(mdast: GenericParent, file: VFile) {
8787
const outputsNode = select('outputs', block) as GenericNode | null;
8888
if (outputsNode !== null && !outputsNode.identifier) {
8989
// Label outputs node
90-
outputsNode.identifier = `${block.identifier}-output`;
90+
outputsNode.identifier = `${block.identifier}-outputs`;
9191
// Enumerate outputs
9292
const outputs = selectAll('output', outputsNode) as GenericNode[];
9393
outputs.forEach((outputNode, index) => {

0 commit comments

Comments
 (0)