Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

markdown-it-kbd

2.0.0 • Public • Published

markdown-it-kbd Build Status npm version Bower version

markdown-it plugin for keystrokes

Renders [[x]] as <kbd>x</kbd>. (<kbd> is the tag for keystrokes).

Usage

const md = require('markdown-it')();
const kbd = require('markdown-it-kbd');
 
md.use(kbd);

This plugin can also be used together with markdown-it-attrs.

Parsing note

The end tag ]] must be on the same line as the start tag [[.

At the moment, “[[” and “]]” are not allowed within keystroke tags, because I can't think of a way to handle this that would make sense in all scenarios. If you think you know how it should be done, please file an issue!

install

npm i markdown-it-kbd

Downloadsweekly downloads

251

version

2.0.0

license

GPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability