Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Fix bug in math rendering where old content was not cleared
meinzzzza6de1041c7ab
diff --git a/packages/ckeditor5-math/src/ui/mathview.ts b/packages/ckeditor5-math/src/ui/mathview.tsindex 254c306abb..42a4c0df17 100644--- a/packages/ckeditor5-math/src/ui/mathview.ts+++ b/packages/ckeditor5-math/src/ui/mathview.ts@@ -56,6 +56,10 @@ export default class MathView extends View {public updateMath(): void {if ( this.element ) {++ // This prevents the new render from appending to the old one.+ this.element.textContent = '';+void renderEquation(this.value,this.element,