You can insert images in Markdown easily with HackMD. HackMD will upload the image(to HackMD's private cloud space), generate the URL to the image, and render it in the note.
The permissions for the image are subordinate to the permissions for the note. So if only you can read the note, then only you can see the image, even if someone happens to have the link to the image.
Supported image formats: png
, jpg
, gif
, bmp
, tif
For example, you upload an image A to note X and paste its link to note Y and Z. Afterwards, you delete X, then you will not see A when viewing Y and Z.
A media library is on our roadmap so that the images and other assets in a note can be treated separately from the note itself.
Drag-and-drop your image file and the resulting image URL will appear at where your cursor is at.
▲ Drag-and-drop image to upload
Click on the icon from the tool bar and choose the file to upload.
▲ Select image from files
HackMD supports copy-pasting images. Use (Ctrl + V or ⌘ Cmd+ V) to insert the image at your cursor.
To adjust the image size proportionally, you can insert =50%x
after the link of the uploaded image. This way, the image size will be adjusted according to the specified percentage without exceeding the display width of the notebook.
Of course, you can freely adjust the percentage to 20%, 45%, 75%, or any other value you prefer.
You must add a space before =
!
Here it is:
Insert =300x
after the link to specify the image width. The size can be adjusted freely, such as 10x
, 350x
, or 600x
, but the maximum width will not exceed the display width of the note.
You must add a space before =
!
Here it is:
Copy the syntax below, and paste your image's link in src="https://hackmd.io/favicon.png"
.
width:10%
: Set image size
Copy the syntax below, and paste your image's link in src="https://hackmd.io/favicon.png"
.
width:10%
: Set image sizemargin:20px right
: Set the picture margins and align to the rightWelcome to the new image and UML toolbar! Here is an introduction to some of the newly added features to make it easier for you to interact with images and graphs.
Starting from May 2025, we have added an image zoom feature. You can zoom in on images or UML diagrams using the following methods:
Some UML diagrams generated by UML language support interaction. Currently, we have identified Markmap and Vega-Lit as the interactive diagrams. If you want to interact with a UML diagram, press and hold the Option/Alt
key while clicking the diagram. This will prevent the image zoom feature from being triggered.