Skip to content

Documark plugin for prepending relative paths with the base path.

documark/dmp-relative-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Documark Relative Paths

npm version dependency status

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

  1. Add plugin to document configuration:

    plugins:
      - dmp-relative-paths
  2. 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.

About

Documark plugin for prepending relative paths with the base path.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published