Skip to content

Conversation

@chriszarate
Copy link
Member

Description

Empty content fails the has_blocks check, but is valid block markup. Fixes #92

Steps to Test

Covered by new unit tests.

@chriszarate chriszarate requested a review from a team as a code owner December 15, 2025 17:00
alecgeatches
alecgeatches previously approved these changes Dec 17, 2025
Copy link
Contributor

@alecgeatches alecgeatches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making this fix and adding more tests to cover it. Minor suggestion above, feel free to merge when you've taken a look and I can put out a new release.

Co-authored-by: Alec Geatches <alec.geatches@automattic.com>
@chriszarate
Copy link
Member Author

@alecgeatches Updated. If good, feel free to merge and release

Copy link
Contributor

@alecgeatches alecgeatches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @chriszarate!

@alecgeatches alecgeatches merged commit ddc91c9 into trunk Dec 19, 2025
4 checks passed
@alecgeatches alecgeatches deleted the fix/parser-allow-empty-content branch December 19, 2025 16:38
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.

Block Data API throws error when there is no block content

3 participants