Allow list items to start with other nodes than paragraph
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 659
- Forks
- 133
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 110
Description
Is your feature request related to a problem? Please describe.
List items currently have to start with a paragraph. So for example this is not possible in text:
-
Foo
some detais about foo -
Bar
Even though it's valid markdown:
- ## Foo
some detais about foo
- ## Bar
Also reported this to prosemirror markdown as it shows the same behavior:
https://github.com/ProseMirror/prosemirror-markdown/issues/100
Describe the solution you'd like
Allow lists to start with headings at least. Maybe even other block elements.
Describe alternatives you've considered
Even simpler lists. But this is even part of the core common mark spec:
https://spec.commonmark.org/0.30/#example-300
Additional context
This is due to the content we specify in ListItem and TaskItem.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ListItem and TaskItem content definitions mentioned in the issue, then inspect the related editor schema and tests. Reproduce the CommonMark example with headings at the start of list items; done means those items are accepted and existing list and task-item behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100