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

markdown-escapes

1.0.4 • Public • Published

markdown-escapes

Build Coverage Downloads Size

List of escapable characters in markdown.

Install

npm:

npm install markdown-escapes

Use

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 flavors.

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).

License

MIT © Titus Wormer

Install

npm i markdown-escapes

DownloadsWeekly Downloads

2,543,983

Version

1.0.4

License

MIT

Unpacked Size

5.19 kB

Total Files

4

Last publish

Collaborators

  • avatar