package
textlint AST node type definition.
npm install @textlint/ast-node-typesGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
50.9 kB
Includes dependencies.
The definition for textlint AST Node types.
This module for parse plugin.
For more details, see TxtNode document.
npm install @textlint/ast-node-typesimport { ASTNodeTypes } from "@textlint/ast-node-types";
console.log(ASTNodeTypes.Document); // => stringThis library include type interface of TxtNode. TypeScript user can use it as type of TxtNode.
// type interface
import { TxtNode } from "@textlint/ast-node-types";
Please use it for creating your textlint-plugin parser.
Use it by
@textlint/text-to-ast@textlint/markdown-to-astnpm testIf you want to new type for AST, Please file issue :)
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureMIT
textlint-user
azuciao+textlint@gmail.com