Skip to content

syntax-tree/mdast-util-phrasing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdast-util-phrasing Build Status Coverage Status

Check if a MDAST (markdown) node is a phrasing element.

Installation

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.

Returns

boolean — whether node passes the test.

Contribute

See contributing.md in syntax-tree/mdast for ways to get started.

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

License

MIT