Try   HackMD

中文版

HackMD Error: 403 error

Insert image in notes

You can insert images in Markdown easily with HackMD. HackMD will upload the image, 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

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Free users can upload images up to 1 MB.
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
Paid users can upload 20 MB.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
If you delete the note to which the images were uploaded, the relation to those would also be removed.

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.

 

Three ways to insert an image

1. Drag-and-drop

Drag-and-drop your image file and the resulting image URL will appear at where your cursor is at.

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

▲ Drag-and-drop image to upload

2. Upload from the tool bar

Click on the icon from the tool bar and choose the file to upload.

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

▲ Select image from files

3. Paste from your clipboard

HackMD supports copy-pasting images. Use (Ctrl + V or ⌘ Cmd+ V) to insert the image at your cursor.

 

How to change image size?

Specify proportion

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.

![](image link =30%x)
 or
![](image link =300x)

For example:
![Docs](https://hackmd.io/_uploads/Bk1YRXXP1g.jpg =30%x)

You must add a space before = !

Here it is:

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Specify width

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.

![](image link =300x)

舉例:
![Docs](https://hackmd.io/_uploads/Bk1YRXXP1g.jpg =300x)

You must add a space before = !

Here it is:

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →