markdown-it plugin for keystrokes
<kbd> is the tag for keystrokes).
const md = require('markdown-it')(); const kbd = require('markdown-it-kbd'); md.use(kbd);
This plugin can also be used together with
The end tag
]] must be on the same line as the start tag
The characters “
[” and “
]” are not allowed within keystroke tags.
If you need to use them, escape them with a backslash (i.e.
\]) or use HTML escape sequences (