Skip to content

Commit 76c5b6b

Browse files
committed
🪪 adding id to outputs enables in-browser compute for figures and embeds
1 parent 56d0d49 commit 76c5b6b

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
@@ -211,6 +211,7 @@ export const codeCellDirective: DirectiveSpec = {
211211
};
212212
const outputs = {
213213
type: 'outputs',
214+
id: nanoid(),
214215
children: [],
215216
};
216217
const block: GenericNode = {

0 commit comments

Comments
 (0)