Skip to content

[BUG FIX](MER-5288] Fix handling of nested paragraphs for iframe/command button handling#294

Merged
rgachuhi merged 8 commits intomasterfrom
MER-5288-migrate-jmol-applet
Feb 19, 2026
Merged

[BUG FIX](MER-5288] Fix handling of nested paragraphs for iframe/command button handling#294
rgachuhi merged 8 commits intomasterfrom
MER-5288-migrate-jmol-applet

Conversation

@andersweinstein
Copy link
Contributor

@andersweinstein andersweinstein commented Feb 19, 2026

Conversion of some elements (jmol applet, command buttons, side-by-side materials containing activities) could give rise to iframes or paragraphs nested within paragraphs. This is illegal block nesting. While there was code that attempted to clean it up, some instances were not getting cleaned up correctly by existing code sequence, causing missing elements in the presentation in authoring where content normalization is applied.

This PR corrects by moving the cleanup step to the end of the restructuring pass, to ensure it happens after all restructuring that might introduce invalid block nesting.

@rgachuhi rgachuhi merged commit 1f74588 into master Feb 19, 2026
2 checks passed
@rgachuhi rgachuhi deleted the MER-5288-migrate-jmol-applet branch February 19, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants