JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7008368
  • Score
    100M100P100Q247163F
  • License MIT

Check if a node is a phrasing element

Package Exports

  • mdast-util-phrasing

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 (mdast-util-phrasing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mdast-util-phrasing

Build Coverage Downloads Size Sponsors Backers Chat

Check if a mdast node is phrasing content.

Install

npm:

npm install mdast-util-phrasing

Usage

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.

Contribute

See contributing.md in syntax-tree/.github for ways to get started. See support.md for ways to get help.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Victor Felder