diff --git a/lively.ide/md/morphs.js b/lively.ide/md/morphs.js index bc316c754..4556cfe18 100644 --- a/lively.ide/md/morphs.js +++ b/lively.ide/md/morphs.js @@ -292,7 +292,8 @@ export class MarkdownPreviewMorph extends HTMLMorph { this.submorphs = []; this.env.forceUpdate(this); - this.html = ed.editorPlugin.renderedMarkdown(); + this.html = ed.editorPlugin.renderedMarkdown(markdownOptions); + setTimeout(() => hljs.highlightAll()); } else { const blocks = []; const exprSerializer = new ExpressionSerializer();