Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including markdown-it-anchor with all npm packages installed. Try it out:

const md = require('markdown-it')() const anchor = require('markdown-it-anchor') md.use(anchor, { level: 1, // slugify: string => string, permalink: false, // renderPermalink: (slug, opts, state, permalink) => {}, permalinkClass: 'header-anchor', permalinkSymbol: '¶', permalinkBefore: false }) const src = `# First header Lorem ipsum. ## Next section! This is totaly awesome.` console.log(md.render(src))

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

markdown-it-anchor v8.6.7

Header anchors for markdown-it.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free