Documark Relative Paths
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.
Usage
-
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="/path/to/document/assets/example.png"/>
Note: All elements with a src
or href
attribute will be checked.