Block list indentation#19833
Merged
mmotyczynska merged 72 commits intomasterfrom Feb 24, 2026
Merged
Conversation
…m-indent-converters
…m-indent-converters
…ent-block-list-command
…command' into ck/19679-indent-block-list-item-command
Add converters for list indentation.
…verters Add converters for list items indentation.
…mmand Add indent block list command.
…k/19682-list-indent-pfo-integration
…gration List indent Paste from Office integration.
…ion-using-classes [List indentation] Support for indentation using classes.
…s-manual-tests [List indentation] Add manual test.
…e following block.
Followups after implementing list indentation.
niegowski
reviewed
Feb 24, 2026
| "_comment": "By default, the plugin uses inline styles for indentation." | ||
| }, | ||
| { | ||
| "elements": "li", |
Contributor
There was a problem hiding this comment.
Maybe we can group this together with ol ul?
| } | ||
| } | ||
| } else { | ||
| listItems.push( listItem ); |
Contributor
There was a problem hiding this comment.
This would set/remove the attribute only on the first block; the rest of the blocks and items would propagate by post-fixer. Commands should not depend on the post-fixers.
| } ); | ||
| } ); | ||
|
|
||
| it( 'no command should be executed when all selected items cannot be indented (start of a list)', () => { |
Contributor
There was a problem hiding this comment.
Please update the test description.
pomek
approved these changes
Feb 24, 2026
Member
pomek
left a comment
There was a problem hiding this comment.
I am speaking only about the lockfile – LGTM.
niegowski
approved these changes
Feb 24, 2026
Contributor
niegowski
left a comment
There was a problem hiding this comment.
Please extract leftovers to follow-ups.
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
Added list indentation integration to the
IndentBlockfeature (enabled by default).New commands support block-level indentation for whole lists (
indentBlockList/outdentBlockList) and for individual list items (indentBlockListItem/outdentBlockListItem). Indentation can be rendered using eithermargin-left/margin-rightstyles (offset-based) or CSS classes (class-based).📌 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).