Your sites Log in Sign up Menu

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?


3 years ago, 2 replies   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 3 years ago ยท Improve this answer