Add mixed ordered/unordered list support (Notion-style)#8
Open
jondkinney wants to merge 1 commit intomainfrom
Open
Add mixed ordered/unordered list support (Notion-style)#8jondkinney wants to merge 1 commit intomainfrom
jondkinney wants to merge 1 commit intomainfrom
Conversation
361e60c to
26201ad
Compare
Allow individual list items to independently display as bullet or numbered within the same list, matching Notion's mixed list behavior. The feature is opt-in via the mixedLists configuration flag (default: true), and can be disabled per-editor with mixed-lists="false". Node model: - EarlyEscapeListItemNode gains __listItemType property - getEffectiveListType() resolves: explicit override → parent list type - createDOM/updateDOM set data-list-item-type on <li> for CSS targeting Per-item toggling: - Command dispatcher toggles just the current item's type - Toolbar pressed state reflects per-item effective type Keyboard shortcuts: - "- " or "* " in a numbered item toggles to bullet - "1. " in a bullet item toggles to numbered Wrapped blocks in list items: - Turn-into wraps content in-place (headings, code, quotes) - Code block and table exit creates sibling list item when wrapped Configuration: - mixedLists: true in default preset, opt-out with mixed-lists="false" - FormatEscapeExtension gates features behind supportsMixedLists Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26201ad to
a6f15f2
Compare
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
mixedListsconfig flag (default: true), disable withmixed-lists="false"-toggles to bullet,1.toggles to numbereddata-list-item-typeattributeTest plan
-or*at start of item — toggles to bullet1.— toggles to numberedmixed-lists="false"on editor — feature disabled🤖 Generated with Claude Code