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 blocks within list items [MER-2057] #162

Closed andersweinstein closed 1 year ago

andersweinstein commented 1 year ago

This takes out the code inlining imgs and stripping paragraphs within list items. It also applies an existing routine to fix up block-containing list items to ensure any loose text items within them get wrapped in paragraphs as required by Slate editor.

The list item fixup is only applied in workbook pages, which are the only cases we have encountered of block items within list items in Chemistry course. It could be added to other resources if a need arises.

andersweinstein commented 1 year ago

Hmm, this doesn't seem to be finding instances within /content/u7_MolecularGeo/m3_molec_structure/x-oli-workbook_page/p1_electron_molec_geo.xml

andersweinstein commented 1 year ago

OK, was another place where tool converts img to img_inline in list items by checking parent.

andersweinstein commented 1 year ago

Two pages in chemistry 1 demonstrating images in list items (find by title in All Pages):

Nomenclature for Binary Ionic Compounds Exploring Electron and Molecular Geometry