Skip to content

Commit

Permalink
fix: parameter parsing error in image URL (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed May 12, 2023
1 parent 8da583d commit ee88cec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _includes/refactor-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -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' %}
Expand All @@ -110,7 +110,6 @@
{% when 'class' %}
{% assign _class = _value %}
{% endcase %}

{% endfor %}

<!-- take out classes -->
Expand Down

0 comments on commit ee88cec

Please sign in to comment.