The Mini Plugin to add support for <picture>
element
- It will convert
- Just Like img tag it will determine image dimensions automatically.
- You can remove plugin once the #6676 issue is fixed and released.
.
├── sanitizers
│ ├── class-sanitizer.php
└── amp-skeleton-compat.php
The plugin uses amp_content_sanitizers
filter to add custom sanitizers and convert <picture>
element to <amp-img>
.
Feel free to create a issue and will add more examples.