Skip to content

Fix numbered list markers in markdown export#1209

Open
miachillgood wants to merge 1 commit into
AppFlowy-IO:mainfrom
miachillgood:codex/fix-numbered-list-markdown-export
Open

Fix numbered list markers in markdown export#1209
miachillgood wants to merge 1 commit into
AppFlowy-IO:mainfrom
miachillgood:codex/fix-numbered-list-markdown-export

Conversation

@miachillgood

Copy link
Copy Markdown

Summary

Fixes documentToMarkdown so consecutive numbered list nodes export as sequential Markdown markers instead of every item using 1.. The encoder now tracks the displayed numbered-list marker for each contiguous list block and passes it to the numbered-list node parser.

This also preserves an explicit starting marker, such as exporting 3, 4, 5 when the first item starts at 3.

Fixes #1206.

Validation

  • Added regression coverage for sequential numbered list export.
  • Added regression coverage for an explicit numbered-list start marker.
  • I could not run the Flutter/Dart test suite locally because this machine does not have dart or flutter installed.

@CLAassistant

CLAassistant commented Jun 1, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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] export number list to ma, the number is all 1 ,not 1,2,3...

2 participants