Markdown tips —  Adding images with spaces in the file path

Опубликовано: 08 Декабрь 2023
на канале: Code 2020
592
17

Need to insert an image or link that includes a space in the file path? Markdown offers two easy ways to do this:

My recommendation is to wrap the entire image or link path in angle brackets. This preserves the original name in the file but will make sure the image or link is rendered correctly

However you may also run into percent encoded file paths. For these you can use normal url percent encoding (https://en.wikipedia.org/wiki/Percent...) to replace special characters like spaces with their encoded equivalent. For spaces, just replace every space in the path with %20

#markdown