Content with only "More" block reloads as invalid #4038
Labels
[Feature] Parsing
Related to efforts to improving the parsing of a string of data and converting it into a different f
[Type] Bug
An existing feature does not function as intended
Milestone
Issue Overview
When saving a post with only the "More" block, reloading the post reveals multiple invalid blocks.
Steps to Reproduce (for bugs)
Expected Behavior
The post is shown as it did prior to reload.
Current Behavior
The post is shown with multiple invalid blocks.
Possible Solution
This appears to be a conflict with
autop
behaviors. Specifically:The Gutenberg content parser treats this as three blocks:
innerHTML
<p>
innerHTML
</p>
The two freeform blocks are marked as invalid because reserializing will restore the missing closing / opening tags respectively.
A few options here:
wpautop
as other blocks<p>
wrapping tag for a More block<p>
The text was updated successfully, but these errors were encountered: