diff --git a/testsuite/tests/input/tex/Ams.test.ts b/testsuite/tests/input/tex/Ams.test.ts
index 870d211de..c1f47fabd 100644
--- a/testsuite/tests/input/tex/Ams.test.ts
+++ b/testsuite/tests/input/tex/Ams.test.ts
@@ -42,13 +42,9 @@ describe('Ams', () => {
tex2mml('A\\implies B'),
``
));
@@ -85,7 +81,7 @@ describe('Ams', () => {
toXmlMatch(
tex2mml('\\tfrac{n}{k}'),
``
@@ -342,23 +326,19 @@ describe('Ams', () => {
-
-
- a
-
-
+
+ a
+
-
-
- b
- b
- b
-
-
+
+ b
+ b
+ b
+
`
@@ -368,9 +348,7 @@ describe('Ams', () => {
tex2mml('\\xleftarrow{abcd}'),
`
-
- ←
-
+ ←
a
b
@@ -386,9 +364,7 @@ describe('Ams', () => {
tex2mml('\\xleftarrow[xyz]{abcd}'),
`
-
- ←
-
+ ←
x
y
@@ -411,9 +387,7 @@ describe('Ams', () => {
`
A
-
- ←
-
+ ←
a
b
@@ -430,9 +404,7 @@ describe('Ams', () => {
tex2mml('\\xrightarrow{abcd}'),
`
-
- →
-
+ →
a
b
@@ -448,9 +420,7 @@ describe('Ams', () => {
tex2mml('\\xrightarrow[xyz]{abcd}'),
`
-
- →
-
+ →
x
y
@@ -473,9 +443,7 @@ describe('Ams', () => {
`
A
-
- →
-
+ →
a
b
@@ -543,20 +511,12 @@ describe('Ams', () => {
toXmlMatch(
tex2mml('\\idotsint\\limits_a^b+3'),
`
-
-
-
-
-
-
+
+
-
-
-
-
-
-
+
+
∫
⋯
∫
@@ -581,11 +541,11 @@ describe('Ams', () => {
it('Operatorname', () =>
toXmlMatch(
tex2mml('a\\operatorname{xyz}b'),
- `
- a
- xyz
-
- b
+ `
+ a
+ xyz
+
+ b
`
));
});
@@ -595,33 +555,37 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{subarray}{c}a\\end{subarray}'),
`
-
-
-
- a
-
-
-
+
+
+
+
+ a
+
+
+
+
`
));
it('Small Matrix', () =>
toXmlMatch(
tex2mml('\\begin{smallmatrix}a\\end{smallmatrix}'),
`
-
-
-
- a
-
-
-
+
+
+
+
+ a
+
+
+
+
`
));
it('Align', () =>
toXmlMatch(
tex2mml('\\begin{align} a&=b \\\\ c&=d \\end{align}'),
`
-
+
a
@@ -653,7 +617,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{align*} a&=b \\\\ c&=d \\end{align*}'),
`
-
+
a
@@ -685,7 +649,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{multline} a\\\\ b \\\\ c \\end{multline}'),
`
-
+
a
@@ -708,7 +672,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{multline*} a\\\\ b \\\\ c \\end{multline*}'),
`
-
+
a
@@ -733,7 +697,7 @@ describe('Ams Environments', () => {
'\\begin{align*} a&=b \\begin{split} r&=s\\\\ & =t \\end{split} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -743,7 +707,7 @@ describe('Ams Environments', () => {
=
b
-
+
r
@@ -789,7 +753,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{gather} a=b \\\\ c=d \\end{gather}'),
`
-
+
a
@@ -811,7 +775,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{gather*} a=b \\\\ c=d \\end{gather*}'),
`
-
+
a
@@ -833,7 +797,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{alignat}{2} a&=b \\\\ c&=d \\end{alignat}'),
`
-
+
a
@@ -865,7 +829,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{alignat*}{2} a&=b \\\\ c&=d \\end{alignat*}'),
`
-
+
a
@@ -899,7 +863,7 @@ describe('Ams Environments', () => {
'\\begin{align*} a&=b \\begin{alignedat}{2} r&=s\\\\ & =t \\end{alignedat} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -909,7 +873,7 @@ describe('Ams Environments', () => {
=
b
-
+
r
@@ -957,7 +921,7 @@ describe('Ams Environments', () => {
'\\begin{align*} a&=b \\begin{aligned} r&=s\\\\ & =t \\end{aligned} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -967,7 +931,7 @@ describe('Ams Environments', () => {
=
b
-
+
r
@@ -1015,7 +979,7 @@ describe('Ams Environments', () => {
'\\begin{align*} a&=b \\begin{gathered} r=s\\\\ =t \\end{gathered} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -1025,7 +989,7 @@ describe('Ams Environments', () => {
=
b
-
+
r
@@ -1076,7 +1040,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{eqnarray} a & = & b\\\\ c & = & d \\end{eqnarray}'),
`
-
+
a
@@ -1112,7 +1076,7 @@ describe('Ams Environments', () => {
toXmlMatch(
tex2mml('\\begin{eqnarray*} a & = & b\\\\ c & = & d \\end{eqnarray*}'),
`
-
+
a
@@ -1152,33 +1116,37 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{subarray}{c}a\\end{subarray}'),
`
-
-
-
- a
-
-
-
+
+
+
+
+ a
+
+
+
+
`
));
it('Small Matrix', () =>
toXmlMatch(
tex2mml('\\begin{smallmatrix}a\\end{smallmatrix}'),
`
-
-
-
- a
-
-
-
+
+
+
+
+ a
+
+
+
+
`
));
it('Align', () =>
toXmlMatch(
tex2mml('\\begin{align} a&=b \\\\ c&=d \\end{align}'),
`
-
+
(1)
@@ -1216,7 +1184,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{align*} a&=b \\\\ c&=d \\end{align*}'),
`
-
+
a
@@ -1248,7 +1216,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{multline} a\\\\ b \\\\ c \\end{multline}'),
`
-
+
a
@@ -1274,7 +1242,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{multline*} a\\\\ b \\\\ c \\end{multline*}'),
`
-
+
a
@@ -1299,7 +1267,7 @@ describe('Ams Labelled Environments', () => {
'\\begin{align*} a&=b \\begin{split} r&=s\\\\ & =t \\end{split} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -1309,7 +1277,7 @@ describe('Ams Labelled Environments', () => {
=
b
-
+
r
@@ -1355,7 +1323,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{gather} a=b \\\\ c=d \\end{gather}'),
`
-
+
(1)
@@ -1383,7 +1351,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{gather*} a=b \\\\ c=d \\end{gather*}'),
`
-
+
a
@@ -1405,7 +1373,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{alignat}{2} a&=b \\\\ c&=d \\end{alignat}'),
`
-
+
(1)
@@ -1443,7 +1411,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{alignat*}{2} a&=b \\\\ c&=d \\end{alignat*}'),
`
-
+
a
@@ -1477,7 +1445,7 @@ describe('Ams Labelled Environments', () => {
'\\begin{align*} a&=b \\begin{alignedat}{2} r&=s\\\\ & =t \\end{alignedat} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -1487,7 +1455,7 @@ describe('Ams Labelled Environments', () => {
=
b
-
+
r
@@ -1535,7 +1503,7 @@ describe('Ams Labelled Environments', () => {
'\\begin{align*} a&=b \\begin{aligned} r&=s\\\\ & =t \\end{aligned} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -1545,7 +1513,7 @@ describe('Ams Labelled Environments', () => {
=
b
-
+
r
@@ -1593,7 +1561,7 @@ describe('Ams Labelled Environments', () => {
'\\begin{align*} a&=b \\begin{gathered} r=s\\\\ =t \\end{gathered} \\\\ c&=d \\end{align*}'
),
`
-
+
a
@@ -1603,7 +1571,7 @@ describe('Ams Labelled Environments', () => {
=
b
-
+
r
@@ -1640,7 +1608,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{equation} a \\end{equation}'),
`
-
+
(1)
@@ -1663,7 +1631,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{eqnarray} a & = & b\\\\ c & = & d \\end{eqnarray}'),
`
-
+
(1)
@@ -1705,7 +1673,7 @@ describe('Ams Labelled Environments', () => {
toXmlMatch(
tex2mml('\\begin{eqnarray*} a & = & b\\\\ c & = & d \\end{eqnarray*}'),
`
-
+
a
@@ -1795,7 +1763,7 @@ describe('InternalMath', () => {
tex2mml('a\\mbox{ \\eqref{1} } c'),
`
a
-
+
@@ -1906,7 +1874,7 @@ describe('MultlineShove', () => {
toXmlMatch(
tex2mml('\\begin{multline} a\\\\ b\\\\ c\\end{multline}'),
`
-
+
a
@@ -1929,7 +1897,7 @@ describe('MultlineShove', () => {
toXmlMatch(
tex2mml('\\begin{multline}\\shoveleft a\\\\ b\\\\ c\\end{multline}'),
`
-
+
a
@@ -1952,7 +1920,7 @@ describe('MultlineShove', () => {
toXmlMatch(
tex2mml('\\begin{multline} a\\\\\\shoveleft b\\\\ c\\end{multline}'),
`
-
+
a
@@ -1975,7 +1943,7 @@ describe('MultlineShove', () => {
toXmlMatch(
tex2mml('\\begin{multline} a\\\\ b\\\\\\shoveleft c\\end{multline}'),
`
-
+
a
@@ -1998,7 +1966,7 @@ describe('MultlineShove', () => {
toXmlMatch(
tex2mml('\\begin{multline}\\shoveright a\\\\ b\\\\ c\\end{multline}'),
`
-
+
a
@@ -2021,7 +1989,7 @@ describe('MultlineShove', () => {
toXmlMatch(
tex2mml('\\begin{multline} a\\\\\\shoveright b\\\\ c\\end{multline}'),
`
-
+
a
@@ -2044,7 +2012,7 @@ describe('MultlineShove', () => {
toXmlMatch(
tex2mml('\\begin{multline} a\\\\ b\\\\\\shoveright c\\end{multline}'),
`
-
+
a
@@ -2069,7 +2037,7 @@ describe('MultlineShove', () => {
'\\begin{multline} a\\\\\\shoveright\\shoveleft b\\\\ c\\end{multline}'
),
`
-
+
a
@@ -2094,7 +2062,7 @@ describe('MultlineShove', () => {
'\\begin{multline} a\\\\\\shoveleft\\shoveright b\\\\ c\\end{multline}'
),
`
-
+
a
@@ -2158,7 +2126,7 @@ describe('Ams Complex', () => {
'\\begin{align}\\dot{x} & = \\sigma(y-x) \\\\\\dot{y} & = \\rho x - y - xz \\\\\\dot{z} & = -\\beta z + xy\\end{align}'
),
`
-
+