process_images | R Documentation |
Markdown specification is not always clear about what goes in the text part
of an image. Pandoc specifies a markdown image as
Since commonmark does not recognize the alt-text, we need to find it
ourselves.
process_images(images, ns = tinkr::md_ns())
images |
an XML nodelist that contains blocs with image information |
ns |
the namespace to use |
Moreover, it's possible to include HTML images, so we need to parse the HTML to expose the alt text.
a copy of the nodelist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.