Skip to content

Commit

Permalink
🧰: run highlighting code after html export of markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
merryman committed Jul 29, 2024
1 parent d43f56c commit 1e1e62e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lively.ide/md/morphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1e1e62e

Please sign in to comment.