Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Paste: don't unwrap inline images #19064
Currently, on paste or raw-to-block conversion, images (and any other figure content) are extracted from its context and placed in the root. This behaviour is obviously not the best. The reason for this was that aligned images are often nested in a paragraph but appear to be a block (as we want it in Gutenberg). The solution is to only extract aligned images and leave the rest alone.
How has this been tested?
Types of changes