mdx-editor / mdx-editor/editor

No maximum indent level for lists

Open
#164 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.7k
Forks
307
Avg merge
14h 22m
Merged PRs (30d)
5

Description

I've found an issue for the listPlugin indention, looks like this function(https://github.com/mdx-editor/editor/blob/main/src/plugins/lists/index.ts#L109) is not being invoked and we can have more than 7 tabs/indentions applied.

This also applies to the check list item as well.

Originally posted by @forhappy in https://github.com/mdx-editor/editor/issues/159#issuecomment-1793650967

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

Read src/plugins/lists/index.ts at the referenced line and trace why the indentation limit is not being invoked for list items. Reproduce indentation beyond seven levels for regular and checklist items, then verify that both types stop at the intended maximum.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.