Downcast skip-level lists to valid HTML#20071
Merged
mmotyczynska merged 5 commits intocc/epic/9587-skip-level-listsfrom Apr 20, 2026
Merged
Downcast skip-level lists to valid HTML#20071mmotyczynska merged 5 commits intocc/epic/9587-skip-level-listsfrom
mmotyczynska merged 5 commits intocc/epic/9587-skip-level-listsfrom
Conversation
mmotyczynska
commented
Apr 15, 2026
| // The <ul/ol> uses the default real ID (list-type-indent) so it can merge with real list | ||
| // elements from other items at the same indent (e.g. a skip-level item at indent 2 followed | ||
| // by a real item at indent 0 — their <ul> at indent 0 must merge into one list). | ||
| const listType = currentListItem.getAttribute( 'listType' ); |
Contributor
Author
There was a problem hiding this comment.
Note: a follow-up PR refines the intermediate wrapper type logic — it uses the type of a real sibling at that indent if one exists (so the intermediate merges with it), otherwise the ancestor's type (so all intermediates at that level agree). This fixes merging for both mixed-type siblings and deeply nested skip-level items.
niegowski
reviewed
Apr 16, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d5ab2eb. Configure here.
niegowski
reviewed
Apr 20, 2026
niegowski
approved these changes
Apr 20, 2026
Base automatically changed from
cc/9701-allow-skip-level-in-model
to
cc/epic/9587-skip-level-lists
April 20, 2026 20:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🚀 Summary
A brief summary of what this PR changes.
📌 Related issues
💡 Additional information
Optional: Notes on decisions, edge cases, or anything helpful for reviewers.
🧾 Checklists
Use the following checklists to ensure important areas were not overlooked.
This does not apply to feature-branch merges.
If an item is not relevant to this type of change, simply leave it unchecked.
Author checklist
Reviewer checklist
t()(if any).