New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it-anchor-span

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-anchor-span

tag for markdown-it markdown parser.

1.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

markdown-it-anchor-span

Build Status NPM version Coverage Status

AnchorSpan plugin for markdown-it markdown parser.

Hello {|anchor|} World! => Hello <span id="anchor"></span>

Install

node.js, browser:

npm install markdown-it-anchor-span --save
bower install markdown-it-anchor-span --save

Use

var md = require('markdown-it')()
            .use(require('markdown-it-anchor-span'));

md.render('Hello {|anchor|} World!') // => 'Hello <span id="anchor"></span>'

The widgetparams can be used to determine what kind of html widget should be rendered in the output container.

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

License

MIT

Keywords

markdown-it-plugin

FAQs

Package last updated on 23 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts