Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

[ENHANCEMENT] handle mixed content within formulas [MER-3067] #244

Closed andersweinstein closed 6 months ago

andersweinstein commented 6 months ago

Migration tool had been assuming legacy <formula> element would contain a single MathML, LaTex formula. But some legacy courses include mixed content within a formula block. Have seen:

This adjusts to only convert legacy formula to torus formula/formula-inline in the case of a single LaTex or MathML expression. Otherwise leaves it as a callout with rich text. Delimited formulas within callout content will be handled by general handling of formulas in rich text content.