Skip to content

Commit ebd78d2

Browse files
authored
fix(mathml): update known mathML tags (#9829)
1 parent c51ab4c commit ebd78d2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/shared/src/domTagConfig.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ const SVG_TAGS =
2727
'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +
2828
'text,textPath,title,tspan,unknown,use,view'
2929

30-
// https://developer.mozilla.org/en-US/docs/Web/MathML/Element
30+
// https://www.w3.org/TR/mathml4/ (content elements excluded)
3131
const MATH_TAGS =
32-
'math,maction,annotation,annotation-xml,menclose,merror,mfenced,mfrac,mi,' +
32+
'annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,' +
33+
'merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,' +
3334
'mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,' +
34-
'semantics,mspace,msqrt,mstyle,msub,msup,msubsup,mtable,mtd,mtext,mtr,' +
35-
'munder,munderover'
35+
'mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,' +
36+
'msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics'
3637

3738
const VOID_TAGS =
3839
'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'

0 commit comments

Comments
 (0)