-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
feat: math-mlgood first issueGood for newcomersGood for newcomersproduct: superdocsource: githubstage: to-doPrioritized and ready to be picked upPrioritized and ready to be picked up
Description
What
Implement the m:nary (n-ary operator) OMML → MathML converter. Covers integrals (∫), summations (∑), products (∏), unions (∪), etc.
OMML: m:nary → m:naryPr (chr, limLoc, grow, subHide, supHide) + m:sub + m:sup + m:e
MathML: (limits below/above) or (limits as sub/superscript) + `` for the operator
Spec: §22.1.2.70
Difficulty: Medium
Details
m:naryPr/m:chr@m:val— operator character (default ∫, U+222B)m:naryPr/m:limLoc@m:val—"undOvr"→<munderover>,"subSup"→<msubsup>m:naryPr/m:subHide/m:supHide— hide lower/upper limitm:sub— lower limit (e.g. i=1)m:sup— upper limit (e.g. n)m:e— integrand/summand
How to implement
- Create
converters/nary.ts - Read operator char and limLoc from
m:naryPr - Build
<munderover>or<msubsup>with<mo>chr</mo>+ sub + sup, then appendm:econtent - Register as
'm:nary': convertNary
Test Document
Download the test file and upload it to the SuperDoc dev app to verify your implementation renders correctly:
Want to work on this? Check the Contributing Guide to get started. Comment on this issue to let us know you're picking it up.
Ref: SD-2381
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: math-mlgood first issueGood for newcomersGood for newcomersproduct: superdocsource: githubstage: to-doPrioritized and ready to be picked upPrioritized and ready to be picked up