Relative paths in included files
Files included using Marked's include syntax, as well as Scrivener files, can use relative paths to reference other files. (Note: this doesn't apply to files included using IA Writer's /file
syntax or CSV files). As of recent versions (2.5.10+), these paths are relative to the included file, not the base file.
Given a file/folder structure like this:
- base_file.md
- subfolder
- included_file.md
- images
- image1.jpg
If included_file.md
references image1.jpg via a relative path, it needs to be written as ../images/image1.jpg
, not images/image1.jpg
. (..
indicates the parent directory) .