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] Add popup, formula and mathml support #48

Closed darrensiegel closed 2 years ago

darrensiegel commented 2 years ago

This PR provides support for migrating <extra> tag into the Torus popup construct.

The extra.xml file within the embedded test course contains two instances of these elements. I've tested and they ingest correctly.

This PR also implements support for <formula> elements, both inline and block, with proper Torus conversion to handle the three different subtypes: mathml, latex and richtext. The richtext variety gets converted to the new callout and callout_inline structures within Torus.

The mathml.xml resource demonstrates many different cases that must be supported. NOTE: one can ingest the generated digest from the embedded test course and render it from Torus, but one cannot edit pages that contain formulas as the Authoring support is still a work in progress.

One can now test this end-to-end by converting the embedded test course, then ingesting it into Torus. You should be able to edit ingested formulas and callouts, and publish and access these as students.