-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to blocks breaks images with Captions #5940
Comments
Hi @maddisondesigns, Thanks for the report. It'll be difficult to reproduce this without specific examples. Can you provide the raw HTML for the images that converted correctly vs. those that didn't? |
Here's the content for the page on my dev server after it was converted to blocks You obviously wont see the images if you just add this to your own test site so change http://dev.maddisondesigns.com to https://maddisondesigns.com if you want to view them.
|
For comparision, here's the raw html content from my live site (that isn't running Gutenberg)
|
I believe this is now fixed with #7892 Using |
I see that #7892 has been merged into core, but I'm still experiencing this issue. Is this supposed to have been fixed in the 3.8.0 release? When I activate the Gutenberg plugin I'm also seeing it wrap other shortcodes in paragraph tags as well, in the classic block. |
@Protohominid can you test 3.7.0? Maybe we're dealing with a regression here. |
Just reverted back to 3.7.0 and got the same result. When I go to an old post (which loads the content as a classic editor block) and select "Edit as HTML", all the shortcodes have been wrapped with p tags. Then when I select "convert to blocks", Gutenberg doesn't recognize them as shortcodes and leaves them as paragraph text. |
Did anyone find a solution for that? |
Issue Overview
I installed Gutenberg on a development version of my main business site. I then edited an old blog post and used the Convert to Blocks option.
A couple of images with captions converted ok but most of them broke, leaving the content a mess.
Steps to Reproduce (for bugs)
Expected Behavior
Convert to Blocks should be able to handle something as basic as an image with a caption
Current Behavior
Images with captions don't convert reliably
Firefox Quantum 59.0.2 (64-bit)
Gutenberg 2.5.0
WordPress 4.9.4
The text was updated successfully, but these errors were encountered: