diff --git a/src/core/jupyter/jupyter-fixups.ts b/src/core/jupyter/jupyter-fixups.ts index 2816b89841..9e31be435d 100644 --- a/src/core/jupyter/jupyter-fixups.ts +++ b/src/core/jupyter/jupyter-fixups.ts @@ -169,7 +169,7 @@ export function fixupFrontMatter(nb: JupyterNotebook): JupyterNotebook { const yamlText = asYamlText({ title }); nb.cells.unshift({ cell_type: "raw", - source: nbLines(lines(yamlText)), + source: nbLines(lines(`---\n${yamlText}---\n`)), metadata: {}, }); }