Whitespace in image paths
Given: ![text](C:/Users/Mike/Pictures/Screenshots/Screenshot (1).png) The space before (1) prevents this from being recognized as an image tag (CommonMark.Net engine). Tried URL encoding (%20) but...
View ArticleWhitespace in image paths
I think a space in not valid in a URL, and should be replaced by %20. Read full topic
View ArticleWhitespace in image paths
% is a legal file name character in Windows. Are implementations suppose to URL decode all paths? Read full topic
View ArticleWhitespace in image paths
I was able to make it work using the following: ![text](file:C:/Users/Mike/Pictures/Screenshots/Screenshot%20(1).png) Read full topic
View ArticleWhitespace in image paths
What if you wanted to specify a relative path, and so cannot start with file:? How would you put a space in the link? Read full topic
View ArticleWhitespace in image paths
+++ Mike_Ward [Mar 28 15 16:58 ]: Given: ![text](C:/Users/Mike/Pictures/Screenshots/Screenshot (1).png) The space before (1) prevents this from being recognized as an image tag (CommonMark.Net...
View ArticleWhitespace in image paths
Good tip about pointy brackets. Using ![Screenshot (7)](<C:/Users/Mike/Pictures/Screenshots/Screenshot (7).png>) produces <p><img...
View ArticleWhitespace in image paths
szhu: What if you wanted to specify a relative path, and so cannot start with file:? How would you put a space in the link? Why it should not? file://this/is/relative vs file:///this/is/absolute. Read...
View ArticleWhitespace in image paths
No, both of those are absolute urls. If you have a protocol in the url, it’s absolute. (More generally, a file/http/https url consists of a protocol, a domain, a path, a query, and a hash. You can...
View ArticleWhitespace in image paths
I’m bumping this topic because I just got surprised at the change in the spec in 0.24. Pointy brackets are no longer allowed in urls, and therefore image paths....
View ArticleWhitespace in image paths
Perhaps your editor should encode those spaces for you? It seems your context is referring to local files on disk, not hyperlinks. That’s a very narrow use case that doesn’t reflect the wider...
View ArticleWhitespace in image paths
I agree, if you’re dragging/dropping links/images into a markdown aware editor, it should encode those. But since the whole purpose of Markdown/CommonMark is to be able to write using any text editor,...
View ArticleWhitespace in image paths
The iA Writer Figure syntax supports spaces in file names, e.g. /My image.png It does this by requiring that each file reference is placed on a new line. That doesn’t solve this problem with the...
View ArticleWhitespace in image paths
It’s a good point that, when we’re referring to an image file on the file system, using %20 is quite unnatural. This might be something to reconsider. (Feel free to put up an issue.) Read full topic
View ArticleWhitespace in image paths
github.com/iainc/Markdown-Content-Blocks Issue: Disallow spaces in URLs opened by Crissov on 2017-09-19 closed by antons on 2017-09-19 You currently have this example among others: /Savings...
View ArticleWhitespace in image paths
@jgm I’ve opened https://github.com/commonmark/CommonMark/issues/503 regarding this issue. Read full topic
View ArticleWhitespace in image paths
@chrisalley I’m not actually crazy about the IA Writer syntax in this case. Using the / to start the image name seems ambiguous: is it starting from the root of my filesystem, or some other app...
View ArticleWhitespace in image paths
In iA Writer, images are located in the same folder as the document, because hierarchical directory structures are confusing. iA Writer creates a copy of the image in the same folder when the image is...
View ArticleWhitespace in image paths
I think it makes sense in your implementation, but that seems very specific to IA Writer. It doesn’t seem that portable, and at least to me, was a little confusing using the leading /. I’ve just...
View ArticleWhitespace in image paths
digitalmoksha: They standardized on having an img directory to store any images. With content block syntax, you could embed an image located in a subfolder like this: /img/photo.jpg Where the Markdown...
View Article