atom-community / markdown-preview-plus

Markdown Preview + Community Features
https://atom.io/packages/markdown-preview-plus
Other
370 stars 85 forks source link

image not showing when image file name have white space #459

Closed RupengWang closed 5 years ago

RupengWang commented 5 years ago
屏幕快照 2019-07-10 20 12 57
Moonbase59 commented 5 years ago

As a workaround, urlencode the image URI, i.e., in your case use images/fun%202.jpeg instead.

lierdakil commented 5 years ago

This is expected. See https://spec.commonmark.org/0.29/#link-destination

TL;DR: enclose the link in angle brackets, e.g. ![fun2](<images/fun 2.jpeg>).

Note that older markdown-it releases did not implement this part of the spec correctly; update to latest markdown-preview-plus to get the latest-and-greatest.