nextcloud / nextcloud/text

Allow list items to start with other nodes than paragraph

Open
#4,284 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement format: markdown
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.