Skip to content

Commit 85abf0b

Browse files
committed
Make changes from PR review
1 parent c97db48 commit 85abf0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ts/input/tex/Tags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ export class AbstractTags implements Tags {
571571
? format
572572
: format.match(/^(\(|\[|\{)(.*)(\}|\]|\))$/)?.slice(1) || [format];
573573
const mml = new TexParser(
574-
tag.map((part) => `\\text{${part}}`).join(''),
574+
tag.map((part) => part ? `\\text{${part}}` : '').join(''),
575575
{},
576576
this.configuration
577577
).mml();

ts/input/tex/mathtools/MathtoolsTags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function MathtoolsTagFormat(
104104
public formatTag(tag: string) {
105105
if (this.mtCurrent) {
106106
const [left, right, format] = this.mtCurrent;
107-
return format ? [left, `${format}{${tag}}`, right] : [left, tag, right];
107+
return [left, format ? `${format}{${tag}}` : tag, right];
108108
}
109109
return super.formatTag(tag);
110110
}

0 commit comments

Comments
 (0)