Supporting rehype-all-the-thumbs
by adding the new thumbnails back to the DOM tree
rehype-👍🏿👍🏼👍🏽👍🏻👍🏾 (Change the input file to include the newly created assets)
Configuration:
- ??
srcs
??
Input:
- a HAST tree
- vfile with
srcs
instructions - vfile with added
newAssets
key added to the object
Output:
- updated HAST tree with source node added within a picture element
- rehype-all-the-thumbs ...like putting on velcro shoes
- rehype-all-the-thumbs-curate (DOM -> data.srcs)
- rehype-all-the-thumbs-create (data.srcs -> data.newAssets)
- rehype-all-the-thumbs-obviate (data.newAssets.filter -> data.newAssets)
- vfile-newAssets-generate (data.newAssets -> Side Effect Funtion to create the file)