Use Marked 2 preprocessor to rewrite images links in markdown document

When I started to write a blog with hexo, a static site generator who use markdown files as source, I encountered the problem that URLs of images in the document did not reflects the paths of the images on the system.
Opened with most of markdown software, the images are not displayed, the links in the document are not paths on the system. Initially, as I used absolutes links, I created a symlink of the folder on the root of my hard-drive, but this is not an ideal solution, and I couldn’t do that for every websites.

Read More