-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Assuming you're in /opt/doc/file.md and you include ./included/first.md, but that file has an inline image referencing ./img/logo.gif, the resulting Markdown would be looking for /opt/doc/img/logo.gif, while the image is actually at /opt/doc/included/img/logo.gif.
Would it be possible (via a config flag or similar) to get the plugin to scan included files and rewrite any paths discovered accordingly? Something like path.resolve(basePath, path.resolve(path.dirname(path.join(basePath, importPath)) should do the trick, assuming basePath is the path of the parent file and importPath is the path of the imported file.
Metadata
Metadata
Assignees
Labels
No labels