Skip to content

Phase 20: empty list item + blank + structural outside (v0.1.17) - #18

Merged
lidonggui merged 1 commit into
mainfrom
phase-20-empty-list-item-structural
Sep 27, 2026
Merged

lidonggui merged 1 commit into
mainfrom
phase-20-empty-list-item-structural

Conversation

@lidonggui

Copy link
Copy Markdown
Contributor

Summary

  • Recognize marker-only empty list items (- / 1. at EOL) as lists (CommonMark).
  • After an empty item + blank, indented structural opens outside the list (micromark parity).
  • Mid-list empty siblings stay one span; following marker after the outside block starts a new list.
  • Tight empty+structural stays inside; Phase 14 non-empty blank nests unchanged.

Test plan

  • pnpm vitest run
  • CI green

Marker-only empty items (`-` / `1.` at EOL) are list items (CommonMark).
After an empty item + blank, indented structural opens outside the list
(micromark parity). Mid-list empty siblings stay one span; tight
empty+structural stays inside; Phase 14 non-empty blank nests unchanged.
@lidonggui
lidonggui merged commit 27c5465 into main Sep 27, 2026
1 check passed
@lidonggui
lidonggui deleted the phase-20-empty-list-item-structural branch September 27, 2026 18:36
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.

1 participant