Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Support file:// protocol in URLs

A topic by nigel22 created Aug 25, 2023 Views: 80 Replies: 1
Viewing posts 1 to 2

I have just obtained deepdwn in order to generate documentation using large numbers of screenshots. However, the url part of an image link has to be a served image. This fails

\![test](file:///home/nigel/django/sarah/silsondb/static/site/img/screenshots/quote-issue.png "Testing")

Replacing the file:// URL with an http URL localhost:8000/static ... quote-issue.png works great, but its a bit annoying to have to run the Django development server just in order to make the screenshots accessible to deepdwn. It would be even nicer if one didn't have to type the filename (or cut/paste from ls -l  output) and could use deepdwn to browse available files (with thumbprint images?!) and insert the path of the chosen one.

(3 edits)

Thanks for the feedback!

While the file:// protocol isn’t supported, both relative and absolute paths are, and you have a few options.

If your markdown file has been saved to /home/nigel/django/sarah/silsondb/static/site/my_file.md, you could use:

![image description](img/screenshots/quote-issue.png) to show the image.

For relative paths like this, you can also use autocomplete while typing the path (by typing Control+Space). This has some usage caveats: Your file must have been saved, and the images must exist somewhere inside your selected notes directory.

Lastly, you can drag and drop images directly on to the editor to create a markdown image with the path prefilled.

Hope that helps!