Images with spaces in the filepath are no longer being parsed correctly.
To Reproduce
Process the following doesn't see match an image.

npm install --save [email protected] with the version you are usingmarked('', {sanitize: true})Expected behavior
Expected the url to be made html friendly with the switch sanitize by replacing spaces with %20.
Looks like it is acting the way it is supposed to.
according to the Common Mark Spec:
A link destination consists of either
a sequence of zero or more characters between an opening
<and a closing>that contains no spaces, line breaks, or unescaped<or>characters, ora nonempty sequence of characters that does not include ASCII space or control characters, and includes parentheses only if (a) they are backslash-escaped or (b) they are part of a balanced pair of unescaped parentheses. (Implementations may impose limits on parentheses nesting to avoid performance issues, but at least three levels of nesting should be supported.)
The workaround is to use url encoding like so 
Notice that the space character is encoded as %20
Update: I missed your last line about sanitize.
Sanitizing is about handling attacks, not fixing typos.
We actually have a proposal to remove sanitization in #1232 so you should avoid that option if you can.
I'm aware of the Common Mark Spec and the workaround but it feels within the scope of the sanitize switch to address this.
As @styfle mentioned above sanitize is meant to prevent XSS attacks not fix typos.
The only way to fix your issue would be to replace the space with %20 before passing it to marked.