I have the same issue and have submitted a ticket. Following.
I’ve found the cause. It’s due to gutenberg beta-test plugin. After I install it and publish a new page i have this problem. The problem is that deactivating and even deleting the plugin doesn’t help :))
arskrigitsioniets – You seem to be using a gallery / lightbox plugin, can you share the name of it? Also try to deactivate it and see if that fixes it? Just for a testing purpose?
wahholmbeck – Can you share the URL of your site?
arskrigitsioniets – You seem to be using a gallery / lightbox plugin, can you share the name of it? Also try to deactivate it and see if that fixes it? Just for a testing purpose?
Yes, I tried, it doesn’n help. I use Foobox Image Lightbox
I discovered that Gutenberg beta plugin generates slightly different HTML for Galleries that standard Gutenberg, and it is that in what is a problem.
How to reproduce:
1. Install https://ru.wordpress.org/plugins/gutenberg/
2. Create a new gallery and watch it on amp.
Right, I agree with you.
Do you think we should make the compatibility of that?
or we should not focus on it since the Gutenberg in the core is already compatible?
I think you should adapt your plugin to both Gutenberg and beta-Gutenberg. After all, sometime the beta will turn into core and all users will have this problem with galleries.
So, it’s not just about the Beta, they have different functions perhaps so that gutenberg core and the plugin. I’m afraid to write double code which would be not necessary for many other people.
Hmm, I thought it’s just a beta because it is in beta-section and there is written that it can be included in a future version of WordPress.
Beta plugins are in development for possible inclusion in a future version of WordPress.
Anyway, thanks for attention, I think other users now know what this problem is related with.