This package has been deprecated

Author message:

This package has been deprecated. Use markdown-it-link-attributes instead.

markdown-it-link-target

1.0.2 • Public • Published

markdown-it-link-target

Deprecated: Use markdown-it-link-attributes instead

Link target plugin for markdown-it markdown parser.

Install

node.js, browser:

npm install markdown-it-link-target --save
bower install markdown-it-link-target --save

Use

var md = require('markdown-it')()
var milt = require('markdown-it-link-target')
// Basic Use
md.use(milt)
 
var html = md.render('![link](https://google.com)')
html // <p><a href="https://google.com" target="_blank">link</a></p>
// With Custom Configuration
md.use(milt, {
  target: '_top',
})
 
var html = md.render('![link](https://google.com)')
html // <p><a href="https://google.com" target="_top">link</a></p>

Differences in browser. If you load script directly into the page, without a package system, the module will add itself globally as window.markdownitLinkTarget.

License

MIT

Package Sidebar

Install

npm i markdown-it-link-target

Weekly Downloads

72

Version

1.0.2

License

MIT

Last publish

Collaborators

  • bladebarringer