Skip to content

Commit 7e8cf6d

Browse files
committed
correct writing of title line in yaml
1 parent 0430df6 commit 7e8cf6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/jupyter/jupyter-fixups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function fixupFrontMatter(nb: JupyterNotebook): JupyterNotebook {
169169
const yamlText = asYamlText({ title });
170170
nb.cells.unshift({
171171
cell_type: "raw",
172-
source: nbLines(lines(yamlText)),
172+
source: nbLines(lines(`---\n${yamlText}---\n`)),
173173
metadata: {},
174174
});
175175
}

0 commit comments

Comments
 (0)