commit 64f0cf53520ecd7600152e9c69738f6874161fe4
parent c2458cc37c91fdfb872eb52d3fcba6770ea8976c
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Wed, 8 Jan 2020 14:59:54 -0600
Enclose in <p> tag to get appropriate spacing
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
@@ -1,5 +1,5 @@
{{ if .Get "caption" }}<figure>{{ end }}
<img alt="{{ (.Get "alt") }}" src="{{ .Get "src" }}"/>
-{{ with .Get "caption" }}
-<figurecaption>{{ . | replaceRE "Figure [0-9]*: " "" | markdownify }}</figurecaption></figure>
+{{- with .Get "caption" -}}
+<figurecaption><p>{{ . | replaceRE "Figure [0-9]*: " "" | markdownify }}</p></figurecaption></figure>
{{ end }}