fix(md/fmt/parser): bom, quotes, trimming#10040
Conversation
|
Parser conformance results onjs/262
jsx/babel
markdown/commonmark
symbols/microsoft
ts/babel
ts/microsoft
|
|
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 (33)
📒 Files selected for processing (13)
WalkthroughThe PR refines Markdown formatting and parsing across the formatter and parser. Changes include conditional trailing newline handling in document formatting based on content inspection, improved block list formatting with enhanced quote-prefix and newline-block handling, a new lexer context for ordered list post-marker whitespace, and BOM support in lexing and parsing. New helper methods ( Possibly related PRs
Suggested labels
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)
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
|
Going to merge this, since it's been open for a while. |
Summary
This PR improves markdown formatting and parsing.
I used Claude Code to navigate and implement the fixes. I reviewed the code and improved.
Parser
Fixes an issue where ordered lists such as
1. Fooweren't correctly parsed. The indentation wasn't parsed, and fell together with their text. This is fixed and you could see it in the snapsthost.It also adds parsing for BOM.
Formatter
Test Plan
Added new tests
Docs