timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 74 forks source link

Images don't show #68

Open diimdeep opened 9 years ago

diimdeep commented 9 years ago

File Course.Creation of Artifacts in Society.md along with folder Course.Creation of Artifacts in Society content : ![](Course.Creation of Artifacts in Society/Innovation.png) - image don't show !

timonwong commented 9 years ago

Sorry for the late reply, I'm investigating this issue now.

timonwong commented 9 years ago

Hmm, seems an issue in markdown parser, I'll try to update the markdown library

timonwong commented 9 years ago

Hi, @diimdeep Refer to the Markdown image syntax, if you add a space in the filename, it will be treated as: ![Alt text](/path/to/img.jpg "Optional title")

I'll release a version that allow you to use "quoted" path, so then, you can use like this: ![](Course.Creation%20of%20Artifacts%20in%20Society/Innovation.png (Please note that all spaces are quoted into %20)

diimdeep commented 9 years ago

@timonwong i much like this approach http://spec.commonmark.org/0.17/#example-391