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 was archived by the owner on Apr 20, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 20, 2023. It is now read-only.
Transformer rule : img in the context of bold/h2/etc #236
We have many articles on our site where the process of inserting a left or right-aligned image results in markup like this:
<strong><img class="alignright wp-image-6765 size-full" title="title" src="https://mysite/wp-content/uploads/2011/04/myimage.jpg" alt="" width="216" height="109" />Inspiration for the idea hit us when</strong>: "Some more text here"
While a little awkward in terms of placement of the image HTML, it is valid and easy to create with the WordPress editor, but it throws a transformer error for "img in the context of Bold"
The issue is that you can't create a transformer rule without losing data.
Activity
timjacobi commentedon Nov 8, 2017
This is the set of rules I have come up with to support your case. Does that help?
