Fix bug in math rendering where old content was not cleared

This commit is contained in:
meinzzzz 2025-11-26 21:59:33 +01:00
parent c8d34e65ea
commit a6de1041c7

View File

@ -56,6 +56,10 @@ export default class MathView extends View {
public updateMath(): void { public updateMath(): void {
if ( this.element ) { if ( this.element ) {
// This prevents the new render from appending to the old one.
this.element.textContent = '';
void renderEquation( void renderEquation(
this.value, this.value,
this.element, this.element,