I’d like to render images with titles as figures, through image render hooks, like this:
{{- if .Title -}}
<figure>
{{- end -}}
<img src="{{- $image_source.url | safeURL -}}" alt="{{- .Text -}}">
{{- if .Title -}}
<figcaption>
{{ .Title | .Page.RenderString }}
</figcaption>
</figure>
{{- end -}}
The problem is that if the title of image contains a footnote reference, it doesn’t get rendered as a footnote, but instead, just plain text. For instance,

...
[^1]: Footnote content
Is there a solution?
Thanks!