figure.html (223B)
1 {{ if .Get "caption" }}<figure>{{ end }}
2 <img alt="{{ (.Get "alt") }}" src="{{ .Get "src" }}"/>
3 {{- with .Get "caption" -}}
4 <figcaption>{{ . | replaceRE "Figure [0-9]*: " "" | markdownify }}</figcaption></figure>
5 {{ end }}