Skip to content

Image width in figure doesn't scale up

Am am using an svg file in a figure that is by default smaller than it is supposed to be. When setting the width, only the enclosing figure environment has its size increased but not the image.

Markdown: ![some caption](img/example.svg){width="100%"}
Result (simplified): <figure style="width: 100%;"><img src="img/example.svg"><figcaption>some caption</figcaption></figure>

It would be good if either the css has a case for figure img {width: 100%;} or the generated html image would have the appropriate style set.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information