Skip to content

Commit

Permalink
Merge pull request #630 from mathjax/issue2643
Browse files Browse the repository at this point in the history
Fully clear tagging on equation start.  (mathjax/MathJax#2643)
  • Loading branch information
dpvc committed Mar 29, 2021
2 parents c125626 + 1b2acc8 commit 1b4a161
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ts/input/tex/Tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export class AbstractTags implements Tags {
public clearTag() {
this.label = '';
this.tag(null, true);
this.currentTag.tagId = '';
this.currentTag = new TagInfo('', undefined, undefined);
}


Expand Down Expand Up @@ -453,6 +453,9 @@ export class AbstractTags implements Tags {
* @override
*/
public startEquation(math: MathItem<any, any, any>) {
this.history = [];
this.stack = [];
this.clearTag();
this.labels = {};
this.ids = {};
this.counter = this.allCounter;
Expand Down

0 comments on commit 1b4a161

Please sign in to comment.