Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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

845

Version

2.0.0

License

GPL-3.0

Unpacked Size

39.6 kB

Total Files

5

Last publish

Collaborators

  • avatar