Description
I am adding a paragraph block to the Gutenberg editor, and then trying to edit the same in HTML by changing p tag with H1 causing it to break the block and throwing the error "The block contains unexpected or invalid content." which looks like a bug.
Step-by-step reproduction instructions
Add a Paragraph block in Gutenberg
Edit the block with HTML
Change p with h1
Click "Edit Visually"
Screenshots, screen recording, code snippet
https://monosnap.com/file/nZkP0Vn7XiZyK5FpHLyoKLhhD4SL2j
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes