Skip to content

fix(cli): preserve zero-based ordered list markers - #709

Open
ump45nose wants to merge 1 commit into
langchain-ai:mainfrom
ump45nose:fix/markdown-zero-list-start
Open

fix(cli): preserve zero-based ordered list markers#709
ump45nose wants to merge 1 commit into
langchain-ai:mainfrom
ump45nose:fix/markdown-zero-list-start

Conversation

@ump45nose

Copy link
Copy Markdown

Summary

  • preserve the explicit 0 start value emitted by marked for zero-based ordered lists
  • add a focused terminal-rendering regression test
  • include a patch changeset for the CLI behavior fix

Reproduction

Before this change, rendering 0. first\n1. second produced 1. first\n2. second because the renderer used a truthy fallback for the list start value.

Testing

  • pnpm exec vitest run test/cli/components/markdown.test.tsx (18 passed)
  • pnpm exec eslint src/cli/components/markdown.tsx test/cli/components/markdown.test.tsx
  • pnpm exec prettier --check src/cli/components/markdown.tsx test/cli/components/markdown.test.tsx .changeset/zero-lists-order.md
  • git diff --check

@changeset-bot

changeset-bot Bot commented Aug 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4c5a4a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openwiki Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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