Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 553 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 553 Bytes

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>'