From 60041f872adf070e512c38d33f3bea9ec5578150 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Mon, 9 Oct 2023 11:18:42 +0200 Subject: [PATCH 1/2] fix figcaption complaints --- _plugins/jekyll-figurify.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_plugins/jekyll-figurify.rb b/_plugins/jekyll-figurify.rb index 90fe30f8e09f5f..1cc3da7a49ab7c 100644 --- a/_plugins/jekyll-figurify.rb +++ b/_plugins/jekyll-figurify.rb @@ -80,14 +80,14 @@ def figurify(page, site) image = insert_image(url, alt, style, dimensions, actual_path) %( -
+ #{image} +
#{prefix}#{num_figure}: #{title}
- ).split("\n").map(&:strip).join end end From 31dcda1a5abd5d6be3e2976a8a4f03c4e3b36559 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Mon, 9 Oct 2023 11:32:08 +0200 Subject: [PATCH 2/2] move image link outside --- _plugins/jekyll-figurify.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_plugins/jekyll-figurify.rb b/_plugins/jekyll-figurify.rb index 1cc3da7a49ab7c..6cef94b0ec5746 100644 --- a/_plugins/jekyll-figurify.rb +++ b/_plugins/jekyll-figurify.rb @@ -45,7 +45,6 @@ def insert_image(url, alt, style, dimensions, actual_path) #{alt} - Open image in new tab ) else %( @@ -81,9 +80,8 @@ def figurify(page, site) %(
- #{image} - + Open image in new tab
#{prefix}#{num_figure}: #{title}