Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I display local image in markdown?

Tags:

markdown

image

Does anyone know how to display a local image in markdown? I don't want to setup a webserver for that.

I try the following in markdown, but it doesn't work:

![image](files/Users/jzhang/Desktop/Isolated.png)

like image 788
zjffdu Avatar asked Jan 12 '17 02:01

zjffdu


People also ask

How do I display an image in R markdown?

To add an image in markdown you must stop text editing, and you do this with the command [Alt text] precedeed by a ! Then you have to add the path to the image in brackets. The path to the image is the path from your directory to the image.

How do I make an image clickable in markdown?

Putting the complete Markdown image tag inside of a Markdown link (in the part where the link's visible text normally goes). Giving the outer link the URL http://commonmark.org , so that when someone clicks on the image, it will take them to that URL.


1 Answers

I suspect the path is not correct. As mentioned by user7412219 ubuntu and windows deal with path differently. Try to put the image in the same folder as your Notebook and use:

![alt text](Isolated.png "Title") 

On windows the desktop should be at: C:\Users\jzhang\Desktop

like image 65
Philipp Schwarz Avatar answered Sep 23 '22 03:09

Philipp Schwarz