Neurosis Prevention Mechanism

    markdown-it-relativelink

    0.4.2 • Public • Published

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

    Install

    npm i markdown-it-relativelink

    DownloadsWeekly Downloads

    8

    Version

    0.4.2

    License

    MIT

    Unpacked Size

    38.8 kB

    Total Files

    8

    Last publish

    Collaborators

    • hhhonzik