Media storage is a feature that ensures all required files are present in the output directory when you export a Quarkdown project.
Here is what it does:
media directory inside the output directorySource:
Result:
<img src="media/my-img@HASH.png" alt="Image" />
Media storage is enabled by default. You can turn it off via the --no-media-storage flag.
Take HTML as an example: images from remote URLs load effortlessly, while local ones (e.g., ../my-img.png) require the image file to be present on the server at the exact same location.
Imagine writing a Quarkdown document, typing , with my-img.png located in the same directory as your Quarkdown source. You would expect it to work, but as soon as you compile the project and open your HTML artifact, you notice the browser cannot find the file simply because it is not there.
Thanks to the media storage system, all media files are carried around with your output.
The storage can handle both local and remote files. The rules that determine which types are allowed in the storage are set by the active renderer.
Overriding these rules is supported, although currently unavailable via CLI.