These need to be processed differently as the markdown needs passed through markdownify.
Currently the switching is really crude, looking only for the figure HTML tag (see #3). It would be a lot better if the regexp was a more generic match against HTML (but be aware that <URL> is valid markdown!).
The
flex-column
shortcode (https://github.com/EVERSE-ResearchSoftware/EVERSE-ResearchSoftware.github.io/blob/main/layouts/shortcodes/flex-content.html) can take content which is in markdown (because it's really handy) as well as content in HTML (e.g., the output of thefigure
shortcode).These need to be processed differently as the markdown needs passed through
markdownify
.Currently the switching is really crude, looking only for the
figure
HTML tag (see #3). It would be a lot better if the regexp was a more generic match against HTML (but be aware that<URL>
is valid markdown!).