You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
WYSISWYG Editors used in CMSs like drupal or WordPress often wrap <img> tags around a <p> tag. I was able to eliminate the wrap with preg_replace, but I am having issues with images inside a longer paragraph. Inserting an image inside a paragraph is valid according to html, but facebook instant articles requires any image to be wrapped inside a <figure> tag. I think that the ImageRule should be able to correctly handle images inside paragraphs.
The text was updated successfully, but these errors were encountered:
I am having this issue with the wordpress plugin:
"Please include all of the images found in the web article. Also, please make sure that the tag is not wrapped in
tags which will cause the image to not render correctly:"
is there a custom transformer rule to resolve this?
*sorry if this is not the correct forum for this question
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
WYSISWYG Editors used in CMSs like drupal or WordPress often wrap
<img>
tags around a<p>
tag. I was able to eliminate the wrap with preg_replace, but I am having issues with images inside a longer paragraph. Inserting an image inside a paragraph is valid according to html, but facebook instant articles requires any image to be wrapped inside a<figure>
tag. I think that the ImageRule should be able to correctly handle images inside paragraphs.The text was updated successfully, but these errors were encountered: