Simon-Initiative / course-digest

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

[BUGFIX] [MER-3245] handle inline code in table headers #250

Closed andersweinstein closed 6 months ago

andersweinstein commented 6 months ago

This is a fix for migrating certain content appearing in Principles of Computing course, which makes extensive use of inline code formatting, including some where inline code-styled text (e.g. variable names) is intermixed with other text content within table headers. These were getting turned into block code elements. The general fix is to respect the style="inline" attribute of the legacy code element.

This also takes steps to preserve whitespace within th elements in the same was as is done for table cells (td), so that, for example <th><code style="inline">a</code> (initially 18)</th> will preserve the space before "(initially".