Your sites Log in Sign up Menu

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"}

15 days ago, 4 replies   markdown   images   Improve this 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 2 months ago · Improve this 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 16 days ago · Improve this answer

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

Answered 16 days ago · Improve this answer

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

Answered 15 days ago · Improve this answer