fix(parse/html/astro): accept astro files with empty frontmatter#8836
fix(parse/html/astro): accept astro files with empty frontmatter#8836
Conversation
🦋 Changeset detectedLatest commit: 736113f The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 packages
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 |
WalkthroughThis PR addresses Astro frontmatter parsing in Biome's HTML parser. The changes modify how empty frontmatter blocks are handled by converting silent parse result discarding into conditional node creation. When embedded content parsing returns Absent, the parser now explicitly constructs an ASTRO_EMBEDDED_CONTENT node. The fix includes a changelog entry and a test case validating that Astro files containing empty frontmatter (two Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
Summary
This PR allows the HTML parser to accept astro files that have frontmatter present, but it's empty. This was completely done using gpt 5.2.
fixes #7858
Test Plan
Added a new snapshot test.
Docs