Simon-Initiative / course-digest

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

[BUG FIX] [MER-3383] [MER-3384] [MER-3386] Handle titles of alternatives, examples, inquiry #258

Closed andersweinstein closed 4 months ago

andersweinstein commented 4 months ago

Title elements on alternatives were not being migrated, causing errors (seen in Alvin Statistics). This PR processes titles included on alternatives.

Also, title elements on some other elements, prominently examples, were being converted to ordinary paragraphs so they rendered with no distinctive styling MER-3384 This PR changes to use a common routine for titles on all these elements to ensure synthesized titles are consistently rendered in a distinctive bold style.

This also improves Inquiry formatting MER-3386 by using same method to style title distinctively, adding "INQUIRY: " prefix, and, in an independently requested tweak, changing to use same size for Question and Answer headers.