Skip to content

Commit 2bb4a17

Browse files
committed
Make sure \surd is symmetric vertically. (mathjax/MathJax#3468)
1 parent 82cabf4 commit 2bb4a17

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

testsuite/tests/input/tex/Base.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7928,7 +7928,7 @@ describe('Mathchar0mo', () => {
79287928
toXmlMatch(
79297929
tex2mml('\\surd'),
79307930
`<math xmlns="http://www.w3.org/1998/Math/MathML" data-latex="\\surd" display="block">
7931-
<mo stretchy="false" data-latex="\\surd">&#x221A;</mo>
7931+
<mo symmetric="true" stretchy="false" data-latex="\\surd">&#x221A;</mo>
79327932
</math>`
79337933
);
79347934
});

ts/input/tex/base/BaseMappings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ new sm.CharacterMap('mathchar0mi', ParseMethods.mathchar0mi, {
169169
* Macros for operators.
170170
*/
171171
new sm.CharacterMap('mathchar0mo', ParseMethods.mathchar0mo, {
172-
surd: '\u221A',
172+
surd: ['\u221A', { symmetric: true }],
173173

174174
// big ops
175175
coprod: ['\u2210', { movesupsub: true }],

0 commit comments

Comments
 (0)