dmp-relative-paths

0.2.2 • Public • Published

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="/path/to/document/assets/example.png"/>

Note: All elements with a src or href attribute will be checked.

Package Sidebar

Install

npm i dmp-relative-paths

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • mauvm