Package Exports
- markdown-escape
- markdown-escape/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (markdown-escape) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Escape Markdown control characters.
var escape = require('markdown-escape')
var assert = require('assert')
assert(escape("#1! We're #1!") === "\\#1! We're \\#1!")
assert(escape("http://example.com") === 'http:\\/\\/example.com')
assert(escape('one (1)') === 'one \\(1\\)')
// Skip escaping specific characters.
assert(escape('one (1)', ['parentheses']) === 'one (1)')
assert(escape("http://example.com", ['slashes']) === 'http://example.com')