From dbeb7fd8718bf3a11d771baff583f1aa0b25a58b Mon Sep 17 00:00:00 2001 From: George Cushen Date: Thu, 28 May 2020 21:52:04 +0100 Subject: [PATCH] feat: enable rich text in figure lightbox captions By adding `safeHTMLAttr`, similarly to the gallery shortcode. Enables links to show within the figure lightbox, for example. Close #1706 --- layouts/shortcodes/figure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 2e8a48c6..7f3dac76 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -21,7 +21,7 @@ {{ if $lightbox }} - + {{ else if .Get "link"}} {{ end -}}