Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Handling images inside paragraphs in Transformer #81

Closed
giovanni-tufo opened this issue Apr 28, 2016 · 2 comments
Closed

Handling images inside paragraphs in Transformer #81

giovanni-tufo opened this issue Apr 28, 2016 · 2 comments

Comments

@giovanni-tufo
Copy link

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.

@everton-rosario
Copy link
Contributor

This was fixed on the PR #124
Can you double check it @joevanni99

Check if you'd like to join us on this event meeting we will do about IA:
http://goo.gl/forms/rZc8LKltI04bsUoF2

@ghost
Copy link

ghost commented May 12, 2017

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants