Markdown Image link work with http but not with https

Asked by ChM

I would like to use the dropbox feature that makes all documents accessible by a URL to insert images in my markdown documents.
The problem is that dropbox provide https links to documents and these are not rendered in the ReText webkit display.

This one works
![img](http://daringfireball.net/graphics/logos/)

This one doesn't
![img](https://www.dropbox.com/s/fw3e3dr65behehn/web.png)

Question information

Language:
English Edit question
Status:
Solved
For:
ReText Edit question
Assignee:
No assignee Edit question
Solved by:
Dmitry Shachnev
Solved:
Last query:
Last reply:
Revision history for this message
Best Dmitry Shachnev (mitya57) said :
#1

What you pointed to is a HTML page, not a .png file.

The real image url is:
https://photos-3.dropbox.com/psi/2048x1536/BTOAeu8S16rQdc9H89z7uaWz4aGSdzAvD-lPkO3eTcY/8459118/1344596400/617d86d/web.png, which works well.

Revision history for this message
ChM (christophe-meessen) said :
#2

Oh! Sorry, my bad. I could have found this.

How did you get this URL ? Can we assume it is persistent ?

Revision history for this message
ChM (christophe-meessen) said :
#3

Thanks Dmitry Shachnev, that solved my question.

Revision history for this message
Dmitry Shachnev (mitya57) said :
#4

I've looked at the page code. I don't know whether it's persistent.

Revision history for this message
ChM (christophe-meessen) said :
#5

I asked on the Dropbox forum and got an answer.

In the URL returned by Dropbox, we have to replace www with dl to get a direct link.
Thus the markdown image link should be

![img](https://dl.dropbox.com/s/fw3e3dr65behehn/web.png)

instead of

![img](https://www.dropbox.com/s/fw3e3dr65behehn/web.png)

and it works.