Pass in explicit language mode when converting cell to markdown

Fixes #126069
This commit is contained in:
Matt Bierner 2021-06-11 16:22:31 -07:00
parent 5b639e8b22
commit 3c1fa1b286
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -925,7 +925,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookCellAction {
}
async runWithContext(accessor: ServicesAccessor, context: INotebookCellActionContext): Promise<void> {
await changeCellToKind(CellKind.Markup, context);
await changeCellToKind(CellKind.Markup, context, 'markdown');
}
});