I am trying to use footnotes in image captions. My hack for captions is with an _includes/img.html file which serves up the file path and caption via liquid tags.
{% include img.html file="core_gap_effect.gif" caption="An air gap can be introduce to extend the linear region of the B-H curve at the expense of reduced permeability[^footnote1]" %}
but of course the [^footnote1] is only rendered as raw text.
Is there a workaround to get the footnotes to render inside this liquid expression?
I’m also open to changing my caption workflow if there are other recommendations, plugins, etc. Currently I am using a pretty basic theme (leonids) that doesn’t seem to support it out of the box.
You could also try adding the markdownify filter your caption. This in theory should process that text as Markdown and convert the footnote into appropriate HTML.