mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 07:24:25 +01:00
Fix bug in math rendering where old content was not cleared
This commit is contained in:
parent
c8d34e65ea
commit
a6de1041c7
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user