RichMarkdown › Images in Markdown

Images in Markdown

Updated

A Markdown image looks like a link with an exclamation mark in front: ![Alt text](photo.png). The picture itself is not in the text. The file only says where to find it, and that is why pictures so often go missing when a document moves.

In short

The syntax

![A red bicycle](images/bike.png)
![A red bicycle](images/bike.png "Shown when you hover")
![Logo](https://example.com/logo.png)
[![Logo that links](images/logo.png)](https://example.com)

Where the picture can live

Kind of addressExampleGood for
Relative pathimages/bike.pngRepositories, static sites and note folders. Move the folder and the links still work
Web addresshttps://…/bike.pngPictures hosted somewhere permanent. The picture disappears if that site removes it
Embedded (base64)data:image/png;base64,…One self-contained file. It makes the text very long, and many apps will not show it

Setting the size

Standard Markdown has no way to set a picture's size. The usual workaround is HTML, on sites that allow it:

<img src="images/bike.png" alt="A red bicycle" width="300">

Obsidian has its own form, ![[bike.png|300]]. Neither is portable. RichMarkdown reads the HTML form, and the Obsidian form when the picture is in an opened .zip, but it does not keep the width, so the exported Markdown shows the picture at its natural size. If size matters, resize the image file itself.

Images in RichMarkdown

Where the pictures go next

DestinationWhat arrives
Download Word (.docx)Pictures inside the Word file. One that cannot be read is counted in the message, and its alt text is kept
Save as PDF / printPictures on the page, kept in one piece
A shared linkPictures in the note or at https addresses. A shared note can be up to 1 MB, pictures included
Cloud savePictures count toward the 1.9 MB of Pro cloud sync, so large ones fill it quickly

Why a picture does not show

Related guides

FAQ

How do I add an image in Markdown?

Write an exclamation mark, the alt text in square brackets, and the address in round brackets, such as ![A bicycle](images/bike.png).

How do I change the size of an image in Markdown?

Standard Markdown cannot. Use an HTML img tag with a width where the site allows it, or resize the image file.

Why is my Markdown image not showing?

Usually the path is wrong, the capital letters do not match, or the image folder was not moved with the file.

Can a Markdown file contain the image itself?

Yes, as base64 text, but the file becomes very long and many apps do not show it. A folder of image files works better.

How do I get images out of a Word document as files?

Open the .docx in RichMarkdown and click Export .md. You get a .zip with the Markdown and an images folder.

Open the free editor