diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 20b983b9..db9ebd2f 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -4,7 +4,7 @@
{{ $caption := .Title }}
{{ if findRE "^https?" $url.Scheme }}
-
+
{{ with $caption }}{{ . | markdownify }}{{ end }}
{{ else }}
@@ -19,12 +19,14 @@
{{ if $disableImageOptimization }}
{{ else }}
{{ else }}
-
+
{{ with $caption }}{{ . | markdownify }}{{ end }}
{{ end }}