From ee88cec270ea5938f98913a3edf28a684cfbd6c0 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 13 May 2023 01:02:15 +0800 Subject: [PATCH] fix: parameter parsing error in image URL (#1022) --- _includes/refactor-content.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_includes/refactor-content.html b/_includes/refactor-content.html index ea6f139..668d92b 100644 --- a/_includes/refactor-content.html +++ b/_includes/refactor-content.html @@ -94,9 +94,9 @@ {% continue %} {% endunless %} - {% assign _pair = _attr | remove: '"' | split: '=' %} + {% assign _pair = _attr | split: '="' %} {% capture _key %}{{ _pair | first }}{% endcapture %} - {% capture _value %}{{ _pair | last }}{% endcapture %} + {% capture _value %}{{ _pair | last | remove: '"' }}{% endcapture %} {% case _key %} {% when 'width' %} @@ -110,7 +110,6 @@ {% when 'class' %} {% assign _class = _value %} {% endcase %} - {% endfor %}