Log in Sign up

Need to resize image

I’m trying to format the height of my image. Is there a way to do this in the existing markdown file or do I have to translate my markdown to HTML in order for my img” tag to work? Or is there some other way within Markdown to specify an image size?

Or perhaps you would recommend adding an ID to the image and then modifying size via CSS?

2 replies Asked Sep 6 '21 at 12:35 · Improve this question

Hello! I recommend using an HTML <img> tag. You can include this directly in your Markdown file — no need to translate the rest of the file. For example:

# My post

Some *markdown* here. And my image:

<img src="_photo.jpg" height="400px" />

You can always mix HTML together with Markdown in a Markdown file.

Answered Sep 6 '21 at 12:36 · Improve this answer
Answered Sep 6 '21 at 12:37 · Improve this answer

Please, log in to add a reply.