npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

remarkable-extlink

1.1.0 • Public • Published

remarkable-extlink 🔗

npm version npm

Remarkable plugin adds target and rel attributes for external links.

Installation

  • npm: npm install --save-dev remarkable-extlink

  • yarn: yarn add -D remarkable-extlink

Usage

const Remarkable = require('remarkable');
const extLink = require('remarkable-extlink');
const md = new Remarkable();
 
md
  .use(extlink, {
    host: 'my-host.com'
  });

Options

host {String}

Required

You site host name to detect external links.

target {String}

Target link attribute value, default _blank.

rel {String}

Rel link attribute value, default nofollow noreferrer noopener.

install

npm i remarkable-extlink

Downloadsweekly downloads

19

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability