Skip to content

Commit

Permalink
🤖 identify code cells as code-cell directives when processing `ipyn…
Browse files Browse the repository at this point in the history
…b` notebooks (#337)

See #330
  • Loading branch information
stevejpurves authored Mar 30, 2023
1 parent 1f6f490 commit 7834d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/myst-cli/src/process/notebook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function processNotebook(
return acc.concat(`${blockDivider(cell)}\`\`\`\n${asString(cell.source)}\n\`\`\``);
}
if (cell.cell_type === CELL_TYPES.code) {
const code = `\`\`\`${language}\n${asString(cell.source)}\n\`\`\``;
const code = `\`\`\`{code-cell} ${language}\n${asString(cell.source)}\n\`\`\``;
if (cell.outputs && (cell.outputs as IOutput[]).length > 0) {
const minified: MinifiedOutput[] = await minifyCellOutput(
cell.outputs as IOutput[],
Expand Down

0 comments on commit 7834d47

Please sign in to comment.