This commit is contained in:
21
node_modules/mdast-util-phrasing/index.js
generated
vendored
Normal file
21
node_modules/mdast-util-phrasing/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict'
|
||||
|
||||
var convert = require('unist-util-is/convert')
|
||||
|
||||
var isPhrasing = convert([
|
||||
'break',
|
||||
'delete',
|
||||
'emphasis',
|
||||
'footnote',
|
||||
'footnoteReference',
|
||||
'image',
|
||||
'imageReference',
|
||||
'inlineCode',
|
||||
'link',
|
||||
'linkReference',
|
||||
'strong',
|
||||
'text'
|
||||
])
|
||||
|
||||
isPhrasing.displayName = 'isPhrasing'
|
||||
module.exports = isPhrasing
|
||||
23
node_modules/mdast-util-phrasing/license
generated
vendored
Normal file
23
node_modules/mdast-util-phrasing/license
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2017 Titus Wormer <tituswormer@gmail.com>
|
||||
Copyright (c) 2017 Victor Felder <victor@draft.li>
|
||||
|
||||
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/mdast-util-phrasing/package.json
generated
vendored
Normal file
72
node_modules/mdast-util-phrasing/package.json
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"name": "mdast-util-phrasing",
|
||||
"version": "2.0.0",
|
||||
"description": "mdast utility to check if a node is phrasing content",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"unist",
|
||||
"mdast",
|
||||
"mdast=util",
|
||||
"util",
|
||||
"utility",
|
||||
"markdown",
|
||||
"phrasing"
|
||||
],
|
||||
"repository": "syntax-tree/mdast-util-phrasing",
|
||||
"bugs": "https://github.com/syntax-tree/mdast-util-phrasing/issues",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
},
|
||||
"author": "Victor Felder <victor@draft.li> (https://draft.li)",
|
||||
"contributors": [
|
||||
"Victor Felder <victor@draft.li> (https://draft.li)",
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
||||
],
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"unist-util-is": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nyc": "^15.0.0",
|
||||
"prettier": "^1.0.0",
|
||||
"remark-cli": "^7.0.0",
|
||||
"remark-preset-wooorm": "^6.0.0",
|
||||
"tape": "^4.0.0",
|
||||
"xo": "^0.26.0"
|
||||
},
|
||||
"scripts": {
|
||||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
|
||||
"test-api": "node test",
|
||||
"test-coverage": "nyc --reporter lcov tape test.js",
|
||||
"test": "npm run format && npm run test-coverage"
|
||||
},
|
||||
"nyc": {
|
||||
"check-coverage": true,
|
||||
"lines": 100,
|
||||
"functions": 100,
|
||||
"branches": 100
|
||||
},
|
||||
"prettier": {
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": false,
|
||||
"semi": false,
|
||||
"trailingComma": "none"
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"esnext": false,
|
||||
"rules": {
|
||||
"no-multi-assign": "off"
|
||||
}
|
||||
},
|
||||
"remarkConfig": {
|
||||
"plugins": [
|
||||
"preset-wooorm"
|
||||
]
|
||||
}
|
||||
}
|
||||
119
node_modules/mdast-util-phrasing/readme.md
generated
vendored
Normal file
119
node_modules/mdast-util-phrasing/readme.md
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
# mdast-util-phrasing
|
||||
|
||||
[![Build][build-badge]][build]
|
||||
[![Coverage][coverage-badge]][coverage]
|
||||
[![Downloads][downloads-badge]][downloads]
|
||||
[![Size][size-badge]][size]
|
||||
[![Sponsors][sponsors-badge]][collective]
|
||||
[![Backers][backers-badge]][collective]
|
||||
[![Chat][chat-badge]][chat]
|
||||
|
||||
Check if a [mdast][] [node][] is [phrasing content][phrasing].
|
||||
|
||||
## Install
|
||||
|
||||
[npm][]:
|
||||
|
||||
```sh
|
||||
npm install mdast-util-phrasing
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```js
|
||||
var phrasing = require('mdast-util-phrasing')
|
||||
|
||||
phrasing({
|
||||
type: 'paragraph',
|
||||
children: [{type: 'text', value: 'Alpha'}]
|
||||
}) // => false
|
||||
|
||||
phrasing({
|
||||
type: 'strong',
|
||||
children: [{type: 'text', value: 'Delta'}]
|
||||
}) // => true
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `phrasing(node)`
|
||||
|
||||
Check if the given value is a phrasing element.
|
||||
|
||||
###### Parameters
|
||||
|
||||
`node` (`*`) — Value to check, typically a [node][].
|
||||
|
||||
###### Returns
|
||||
|
||||
`boolean` — whether `node` is [phrasing content][phrasing].
|
||||
|
||||
## Security
|
||||
|
||||
Use of `mdast-util-phrasing` does not involve [**hast**][hast], user content,
|
||||
or change the tree, so there are no openings for
|
||||
[cross-site scripting (XSS)][xss] attacks.
|
||||
|
||||
## Contribute
|
||||
|
||||
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
|
||||
started.
|
||||
See [`support.md`][support] for ways to get help.
|
||||
|
||||
This project has a [code of conduct][coc].
|
||||
By interacting with this repository, organization, or community you agree to
|
||||
abide by its terms.
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Victor Felder][author]
|
||||
|
||||
<!-- Definitions -->
|
||||
|
||||
[build-badge]: https://img.shields.io/travis/syntax-tree/mdast-util-phrasing.svg
|
||||
|
||||
[build]: https://travis-ci.org/syntax-tree/mdast-util-phrasing
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/mdast-util-phrasing.svg
|
||||
|
||||
[coverage]: https://codecov.io/github/syntax-tree/mdast-util-phrasing
|
||||
|
||||
[downloads-badge]: https://img.shields.io/npm/dm/mdast-util-phrasing.svg
|
||||
|
||||
[downloads]: https://www.npmjs.com/package/mdast-util-phrasing
|
||||
|
||||
[size-badge]: https://img.shields.io/bundlephobia/minzip/mdast-util-phrasing.svg
|
||||
|
||||
[size]: https://bundlephobia.com/result?p=mdast-util-phrasing
|
||||
|
||||
[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
|
||||
|
||||
[backers-badge]: https://opencollective.com/unified/backers/badge.svg
|
||||
|
||||
[collective]: https://opencollective.com/unified
|
||||
|
||||
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg
|
||||
|
||||
[chat]: https://spectrum.chat/unified/syntax-tree
|
||||
|
||||
[npm]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[license]: license
|
||||
|
||||
[author]: https://draft.li
|
||||
|
||||
[contributing]: https://github.com/syntax-tree/.github/blob/master/contributing.md
|
||||
|
||||
[support]: https://github.com/syntax-tree/.github/blob/master/support.md
|
||||
|
||||
[coc]: https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
|
||||
|
||||
[mdast]: https://github.com/syntax-tree/mdast
|
||||
|
||||
[node]: https://github.com/syntax-tree/mdast#nodes
|
||||
|
||||
[phrasing]: https://github.com/syntax-tree/mdast#phrasingcontent
|
||||
|
||||
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
|
||||
|
||||
[hast]: https://github.com/syntax-tree/hast
|
||||
Reference in New Issue
Block a user