Blot

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"}
Asked 3 years ago Edit
4 replies

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%"}
3 years ago Edit

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

3 years ago Edit

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

3 years ago Edit

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

3 years ago Edit

Your reply