Skip to content

fix(editor): render ordered lists with sequential numbering - #753

Merged
murongg merged 1 commit into
v2from
fix/751-ordered-list-numbering
Oct 5, 2026
Merged

murongg merged 1 commit into
v2from
fix/751-ordered-list-numbering

Conversation

@murongg

@murongg murongg commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Deleting a middle item currently leaves live preview numbered 1, 3. Calculate preview markers from each parsed ordered list's starting number and direct item order so the remaining items display 1, 2, without rewriting Markdown source.

Preserve custom starts, nested list sequences, and marker styles. Add regression coverage for deletion, undo/redo, view switches, editor recreation, loose lists, tasks, and items outside the visible range.

Fixes #751

Validation

  • pnpm --filter @markra/editor test — 626 tests passed across 44 files.
  • pnpm --filter @markra/editor build — passed.
  • pnpm --filter @markra/editor typecheck:test — passed.
  • pnpm --filter @markra/desktop build — passed, including vendor chunk verification.
  • Browser QA: deleted the second item and checked Preview, Source, and Split modes; preview displayed 1, 2 while source retained 1, 3.

@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
markra-web Ready Ready Preview Oct 5, 2026 12:26am UTC

@murongg
murongg merged commit f2e809d into v2 Oct 5, 2026
23 checks passed
@murongg
murongg deleted the fix/751-ordered-list-numbering branch October 5, 2026 00:30

This branch was successfully deployed

1 active deployment
Preview — 8a40d70e Deployed Oct 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 数字列表不能正常工作

1 participant