textlint AST node type definition.
npm install @textlint/ast-node-typesThe definition for textlint AST Node types.
This module for parse plugin.
For more details, see TxtNode document.
npm install @textlint/ast-node-types
``js`
import { ASTNodeTypes } from "@textlint/ast-node-types";
console.log(ASTNodeTypes.Document); // => string
This library include type interface of TxtNode.
TypeScript user can use it as type of TxtNode.
`ts
// type interface
import { TxtNode } from "@textlint/ast-node-types";
`
Please use it for creating your textlint-plugin parser.
Use it by
- textlint internal
- @textlint/text-to-ast@textlint/markdown-to-ast
-
- major: Breaking Change
- minor: Adding new type
- patch: Fixing issues
npm test
If you want to new type for AST, Please file issue :)
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT