Automattic / Automattic/wp-post-grammar
Parsing of empty blocks is incorrect
Open
bug
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to parse an empty block, something like ``. The result I get is the following

I was expecting to get only one block of type `paragraph`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported empty-block input `` and compare the parser result with the expected single paragraph block. Trace how the grammar handles an empty block and verify that the corrected result contains only that paragraph block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100