Skip to content

hhhonzik/markdown-it-relativelink

 
 

Repository files navigation

markdown-it-relativelink

v1.+ requires markdown-it v4.+, see changelog.

[[relative link]] => <a href="http://myprefix/relative-link">relative link</a>

Install

node.js, browser:

npm install markdown-it-relativelink --save
bower install markdown-it-relativelink --save

Use

var md = require('markdown-it')()
            .use(require('markdown-it-relativelink')({
                prefix: 'http://example.com/'
            }));

md.render('[[link]]') // => '<p><a href="http://example.com/link">link</a></p>'

About

plugin for markdown-it markdown parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 73.1%
  • Makefile 26.9%