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 Nov 25, 2019. It is now read-only.
constprocessDiv=(dom)=>{// check if element is a galleryif(dom.attribs.id==='gallery'){// grab all imagesconstimages=dom.children.map(e=>e.children[0].attribs.src);// pass them as a attribute (`images` prop in fact)dom.attribs.images=images;// remove children while we don't need themdom.children=[];// set custom tag name to map it with `mapElements`dom.name='gallery';returndom;}returndom;}
With some DOM processing we could create cool things. For example:
The text was updated successfully, but these errors were encountered: