Skip to content

Phase 22: lazy empty-container / link-def title / ordered start≠1 (v0.1.19) - #20

Merged
lidonggui merged 1 commit into
mainfrom
phase-22-lazy-empty-containers
Sep 28, 2026
Merged

lidonggui merged 1 commit into
mainfrom
phase-22-lazy-empty-containers

Conversation

@lidonggui

Copy link
Copy Markdown
Contributor

Summary

Phase 22 micromark/CommonMark parity for lazy continuation and paragraph interrupts:

  • Empty quotes / marker-blank quote lines do not absorb unindented lazy paragraph lines; non-empty quote lazy (Phase 13) unchanged
  • Marker-only empty list items (- / 1. / - …) do not absorb unindented lazy text; indented content still nests
  • Complete link-definitions absorb at most one indented title line (not arbitrary lazy / non-title indent); footnote lazy (Phase 14) unchanged
  • Ordered lists with start ≠ 1 do not interrupt paragraphs; start 1 still interrupts

Package bump v0.1.19. Roadmap / README / contract updated.

Test plan

  • pnpm verify (typecheck + test + build) — 116 tests
  • Focused Phase 22 cases in native-scanner.test.ts
  • Probed vs @roobli/md/legacy-micromark on empty-container / def / ordered-interrupt edges

….1.19)

CommonMark/micromark: empty quotes and marker-only empty list items do not
absorb unindented lazy lines; complete link-definitions absorb at most one
indented title line; ordered lists with start ≠ 1 do not interrupt paragraphs.
Footnote lazy (Phase 14) unchanged.
@lidonggui
lidonggui merged commit 6257686 into main Sep 28, 2026
@lidonggui
lidonggui deleted the phase-22-lazy-empty-containers branch September 28, 2026 18:51
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