提交 62d5e55d 编写于 作者: R rebornix

Fix #99259. Bind content change for text buffer when markdown is in preview mode.

上级 d774ade0
......@@ -174,6 +174,15 @@ export class StatefullMarkdownCell extends Disposable {
}
}));
this.localDisposables.add(viewCell.textBuffer.onDidChangeContent(() => {
this.markdownContainer.innerHTML = '';
viewCell.clearHTML();
let renderedHTML = viewCell.getHTML();
if (renderedHTML) {
this.markdownContainer.appendChild(renderedHTML);
}
}));
const clientHeight = templateData.container.clientHeight;
this.viewCell.totalHeight = clientHeight;
notebookEditor.layoutNotebookCell(viewCell, clientHeight);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册