Skip to content

Commit 35c20d3

Browse files
authored
Merge pull request #674 from mathjax/issue2643
Fix regression in tagging caused by #630
2 parents cd12327 + 0dd9319 commit 35c20d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ts/input/tex/Tags.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export class AbstractTags implements Tags {
404404
public clearTag() {
405405
this.label = '';
406406
this.tag(null, true);
407-
this.currentTag = new TagInfo('', undefined, undefined);
407+
this.currentTag.tagId = '';
408408
}
409409

410410

@@ -456,6 +456,7 @@ export class AbstractTags implements Tags {
456456
this.history = [];
457457
this.stack = [];
458458
this.clearTag();
459+
this.currentTag = new TagInfo('', undefined, undefined);
459460
this.labels = {};
460461
this.ids = {};
461462
this.counter = this.allCounter;

0 commit comments

Comments
 (0)