figure.liquid sets nonstandard <img> attributes (eg max-width) #2156
Replies: 1 comment 1 reply
-
What do you mean by nonstandard? At least it is documented in the W3 Schools as such. I thought that the problem was that you are also using the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
figure.liquid
generates an<img>
tag that contains nonstandard attributes, likemax-width
.When setting the value of these attributes (via liquid include args), I don't see the expected result. For instance, with
max-width
set to 100px, my figure still occupies the whole width. I don't understand what the role of these attributes is:To reproduce: In
2_project.md
, paste this line anywhere:{% include figure.liquid path="assets/img/1.jpg" title="example image" class="img-fluid rounded z-depth-1" max-width="100px" %}
I would expect the image to be 100px wide. It's not.
Beta Was this translation helpful? Give feedback.
All reactions