Skip to content

Commit 18774a6

Browse files
author
nikhil6393
committed
fix: use explicit MathML element list instead of namespace check
1 parent ee81c5f commit 18774a6

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2024, salesforce.com, inc.
3+
* All rights reserved.
4+
* SPDX-License-Identifier: MIT
5+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6+
*/
7+
8+
export const MATHML_ELEMENTS = [
9+
'annotation',
10+
'annotation-xml',
11+
'maction',
12+
'math',
13+
'menclose',
14+
'merror',
15+
'mfenced',
16+
'mfrac',
17+
'mi',
18+
'mmultiscripts',
19+
'mn',
20+
'mo',
21+
'mover',
22+
'mpadded',
23+
'mphantom',
24+
'mprescripts',
25+
'mroot',
26+
'mrow',
27+
'ms',
28+
'mspace',
29+
'msqrt',
30+
'mstyle',
31+
'msub',
32+
'msubsup',
33+
'msup',
34+
'mtable',
35+
'mtd',
36+
'mtext',
37+
'mtr',
38+
'munder',
39+
'munderover',
40+
'semantics',
41+
];

0 commit comments

Comments
 (0)