EVERSE-ResearchSoftware / EVERSE-ResearchSoftware.github.io

EVERSE Webiste
https://everse.software/
1 stars 5 forks source link

Have flex column layouts switch from markdown to HTML smoothly #4

Open graeme-a-stewart opened 4 months ago

graeme-a-stewart commented 4 months ago

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 the figure 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!).