This commit is contained in:
57
node_modules/markdown-escapes/index.js
generated
vendored
Normal file
57
node_modules/markdown-escapes/index.js
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = escapes
|
||||
|
||||
var defaults = [
|
||||
'\\',
|
||||
'`',
|
||||
'*',
|
||||
'{',
|
||||
'}',
|
||||
'[',
|
||||
']',
|
||||
'(',
|
||||
')',
|
||||
'#',
|
||||
'+',
|
||||
'-',
|
||||
'.',
|
||||
'!',
|
||||
'_',
|
||||
'>'
|
||||
]
|
||||
|
||||
var gfm = defaults.concat(['~', '|'])
|
||||
|
||||
var commonmark = gfm.concat([
|
||||
'\n',
|
||||
'"',
|
||||
'$',
|
||||
'%',
|
||||
'&',
|
||||
"'",
|
||||
',',
|
||||
'/',
|
||||
':',
|
||||
';',
|
||||
'<',
|
||||
'=',
|
||||
'?',
|
||||
'@',
|
||||
'^'
|
||||
])
|
||||
|
||||
escapes.default = defaults
|
||||
escapes.gfm = gfm
|
||||
escapes.commonmark = commonmark
|
||||
|
||||
// Get markdown escapes.
|
||||
function escapes(options) {
|
||||
var settings = options || {}
|
||||
|
||||
if (settings.commonmark) {
|
||||
return commonmark
|
||||
}
|
||||
|
||||
return settings.gfm ? gfm : defaults
|
||||
}
|
||||
22
node_modules/markdown-escapes/license
generated
vendored
Normal file
22
node_modules/markdown-escapes/license
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2016 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
72
node_modules/markdown-escapes/package.json
generated
vendored
Normal file
72
node_modules/markdown-escapes/package.json
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"name": "markdown-escapes",
|
||||
"version": "1.0.4",
|
||||
"description": "List of escapable characters in markdown",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
"escape",
|
||||
"pedantic",
|
||||
"gfm",
|
||||
"commonmark"
|
||||
],
|
||||
"repository": "wooorm/markdown-escapes",
|
||||
"bugs": "https://github.com/wooorm/markdown-escapes/issues",
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/wooorm"
|
||||
},
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
||||
],
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"browserify": "^16.0.0",
|
||||
"nyc": "^14.0.0",
|
||||
"prettier": "^1.0.0",
|
||||
"remark-cli": "^7.0.0",
|
||||
"remark-preset-wooorm": "^6.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"tinyify": "^2.0.0",
|
||||
"xo": "^0.25.0"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
|
||||
"build-bundle": "browserify . -s markdownEscapes -o markdown-escapes.js",
|
||||
"build-mangle": "browserify . -s markdownEscapes -p tinyify -o markdown-escapes.min.js",
|
||||
"build": "npm run build-bundle && npm run build-mangle",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js",
|
||||
"test": "npm run format && npm run build && npm run test-coverage"
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"preset-wooorm"
|
||||
]
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": false,
|
||||
"semi": false,
|
||||
"trailingComma": "none"
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"esnext": false,
|
||||
"ignores": [
|
||||
"markdown-escapes.js"
|
||||
]
|
||||
},
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"branches": 100
|
||||
}
|
||||
}
|
||||
80
node_modules/markdown-escapes/readme.md
generated
vendored
Normal file
80
node_modules/markdown-escapes/readme.md
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
# markdown-escapes
|
||||
|
||||
[![Build][build-badge]][build]
|
||||
[![Coverage][coverage-badge]][coverage]
|
||||
[![Downloads][downloads-badge]][downloads]
|
||||
[![Size][size-badge]][size]
|
||||
|
||||
List of escapable characters in markdown.
|
||||
|
||||
## Install
|
||||
|
||||
[npm][]:
|
||||
|
||||
```sh
|
||||
npm install markdown-escapes
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```js
|
||||
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 `default`s).
|
||||
|
||||
### `escapes.commonmark`
|
||||
|
||||
List of escapable characters in CommonMark (which includes all `gfm`s).
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[build-badge]: https://img.shields.io/travis/wooorm/markdown-escapes.svg
|
||||
|
||||
[build]: https://travis-ci.org/wooorm/markdown-escapes
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/markdown-escapes.svg
|
||||
|
||||
[coverage]: https://codecov.io/github/wooorm/markdown-escapes
|
||||
|
||||
[downloads-badge]: https://img.shields.io/npm/dm/markdown-escapes.svg
|
||||
|
||||
[downloads]: https://www.npmjs.com/package/markdown-escapes
|
||||
|
||||
[size-badge]: https://img.shields.io/bundlephobia/minzip/markdown-escapes.svg
|
||||
|
||||
[size]: https://bundlephobia.com/result?p=markdown-escapes
|
||||
|
||||
[npm]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: license
|
||||
|
||||
[author]: https://wooorm.com
|
||||
Reference in New Issue
Block a user