src/vs/workbench/contrib/notebook/browser/view/renderers/markdownCell.ts/BuiltinMarkdownRenderer/update
class BuiltinMarkdownRenderer:	update(): void {

		const markdownRenderer = this.viewCell.getMarkdownRenderer();
		const renderedHTML = this.viewCell.getHTML();
		if (renderedHTML) {
			this.markdownContainer.appendChild(renderedHTML);
		}

		if (this.editorAccessor()) {
			// switch from editing mode
			this.viewCell.renderedMarkdownHeight = this.container.clientHeight;
			this.relayoutCell();
		} else {
			this.localDisposables.clear();
			this.localDisposables.add(markdownRenderer.onDidRenderAsync(() => {
				if (this.viewCell.getEditState() === CellEditState.Preview) {
					this.viewCell.renderedMarkdownHeight = this.container.clientHeight;
				}
				this.relayoutCell();
			}));

			this.localDisposables.add(this.viewCell.textBuffer.onDidChangeContent(() => {
				this.markdownContainer.innerText = '';
				this.viewCell.clearHTML();
				const renderedHTML = this.viewCell.getHTML();
				if (renderedHTML) {
					this.markdownContainer.appendChild(renderedHTML);
				}
			}));

			this.viewCell.renderedMarkdownHeight = this.container.clientHeight;
			this.relayoutCell();
		}
	}