I have various images in my static directory that I’d like to refer to from markdown content, but I haven’t found a great way of doing it. Let’s say my base_url is https://example.com/user/me and I want to refer to static/pic.jpg.
- I can link it with a relative path, like
. This has the problem that I need to update the link when I move the markdown file. - I can link it with an absolute path, like
. This has the problem that I need to update the link whenbase_urlchanges. (It’s also the solution that was mentioned in this similar issue)
Besides being a little fragile, the options above don’t check that the link is valid. I tried some variations on  but couldn’t get any to work. Is there a better option that I’m missing?