Log in Sign up

Specify the width of a markdown image?

I'd like to change the size of an image in one of my posts. Can I use the following syntax from Jekyll?

![Caption](/path/to/_image.jpeg){width="250"}

7 months ago, 4 replies   markdown   images   Edit question

Yes, this syntax is supported by Blot's markdown converter.

You can also use % values in the parameter, like this:

![Caption](/path/to/_image.jpeg){width="80%"}
Answered 8 months ago · Edit answer

A relative width specification sounds like Pandoc..

Is there an option on a template side to pass the explicit width and height to all of the image elements? Then maybe we can use metadata to store the size data

Answered 7 months ago · Edit answer

Wouldn't that just be in CSS for the image tags?

Answered 7 months ago · Edit answer

Yeah, I already though that it could be an HTML or styles inject as well, that works!

Answered 7 months ago · Edit answer