fix(markdown_parser): handle tab-separated container markers#9965
Conversation
|
Merging this PR will not alter performance
Comparing Footnotes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (3)
WalkthroughThis PR refines Markdown list and blockquote parsing by adding lexer-level whitespace controls and tighter ordered-list marker validation. It introduces a Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This comment has been minimized.
This comment has been minimized.
Thanks for the review. On
So the coverage is pinned to the tab-after-marker cases plus the requested controls. No changeset is intentional here. This markdown parser/formatter area is still under active development, so per prior maintainer guidance I didn’t add one for this fix. |
ematipico
left a comment
There was a problem hiding this comment.
Can we add some tests to snapshot? We should add them for regression
…tainer markers Add CST/AST snapshot fixtures for the three tab-separated cases covered by the preceding fix: nested blockquote (`>\t>\tfoo`), list marker with tab separator (`-\tfoo`), and list marker with space-tab-space separator (`- \t foo`).
ematipico
left a comment
There was a problem hiding this comment.
Thank you! Really appreciated
It was my oversight. |
Note
This PR was created with AI assistance (Codex).
Summary
Fixes the tab-separated container marker cases from the markdown fuzzer without changing thematic-break precedence. The lexer now splits post-marker whitespace only when tabs are involved, preserving ordinary list CST shape while letting the parser distinguish marker separator space from real content indent.
This fixes
> > foo,- foo, and- foo, and preserves the correct CommonMark behavior for- ---while updating the stale test comments around that case.Test Plan
cargo test -p biome_markdown_parserjust test-markdown-conformancespec_test.rsfor the tab-separated quote/list casesDocs
N/A