Skip to content

Commit

Permalink
fix(mathml): update known mathML tags (#9829)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Dec 14, 2023
1 parent c51ab4c commit ebd78d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/shared/src/domTagConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ const SVG_TAGS =
'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +
'text,textPath,title,tspan,unknown,use,view'

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

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

0 comments on commit ebd78d2

Please sign in to comment.