mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
PR-URL: https://github.com/nodejs/node/pull/21817 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com>
markdown-escapes

List of escapable characters in markdown.
Installation
npm:
npm install markdown-escapes
Usage
var escapes = require('markdown-escapes');
// Access by property:
escapes.commonmark; //=> ['\\', '`', ..., '@', '^']
// Access by options object:
escapes({gfm: true}); //=> ['\\', '`', ..., '~', '|']
API
escapes([options])
Get escapes. Supports options.commonmark and options.gfm, which
when true returns the extra escape characters supported by those
flavours.
Returns
Array.<string>.
escapes.default
List of default escapable characters.
escapes.gfm
List of escapable characters in GFM (which includes all defaults).
escapes.commonmark
List of escapable characters in CommonMark (which includes all gfms).