beautiful-docs / beautiful-docs

A beautiful way to read documentation
MIT License
298 stars 55 forks source link

md images from internet not working #15

Closed mipmip closed 11 years ago

mipmip commented 11 years ago

This is because it automatically converts URL's to links.

![image](http://picdrop.t3lab.com/neZVhXDbDk.png)

is translated to

![image](<a href="http://picdrop.t3lab.com/neZVhXDbDk.png.png">http://picdrop.t3lab.com/neZVhXDbDk.png.png</a> =600x)

Tried to find a fix but I'm too unknown with coffee and javascript. Sorry. Nice project!

mipmip commented 11 years ago

quick workaround:

sed -i.bak \'s/\!\[image\][(]\<a href="\(.*\)\(\.png\)"\>\(.*\)/<img src="\1\2" \/\>/g\' out/*.html