fix: parameter parsing error in image URL (#1022)

This commit is contained in:
Cotes Chung 2023-05-13 01:02:15 +08:00
parent 8da583d403
commit ee88cec270
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -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 %}
<!-- take out classes -->