Documark plugin for resolving relative paths.
The Jade and Markdown parser do not properly insert the base path in URLs, this plugin fixes that. Also see: visionmedia/jade#1553.
-
Add plugin to document configuration:
plugins: - dmp-relative-paths
-
Relative paths will be prepended with the base path:
<img src="assets/example.png"/>⇒<img src="https://github.com/path/to/document/assets/example.png"/>
Note: All elements with a src or href attribute will be checked.