Skip to content

Commit 754edf1

Browse files
committed
🪪 adding id to outputs enables in-browser compute for figures and embeds
1 parent 59a4464 commit 754edf1

File tree

1 file changed

+1
-0
lines changed
  • packages/myst-directives/src

1 file changed

+1
-0
lines changed

packages/myst-directives/src/code.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export const codeCellDirective: DirectiveSpec = {
254254
};
255255
const outputs = {
256256
type: 'outputs',
257+
id: nanoid(),
257258
children: [],
258259
};
259260
const block: GenericNode = {

0 commit comments

Comments
 (0)