textlint-plugin-asciidoctor
v1.1.0
Published
yet another asciidoctor plugin for textlnt
Downloads
4,101
Maintainers
Readme
textlint-plugin-asciidoctor
Asciidoctor support for textlint using asciidoctor.js.
Installation
> npm install textlint-plugin-asciidoctor
Limitation
- Currently, some syntax (e.g., comment, preamble) are not supported.
- If you find unsupported syntax, please create an issue.
- See test code for details.
Usage
{
"plugins": [
"asciidoctor"
]
}
File Extension
This plugin recognize these file extension as asciidoc file.
- ".asciidoc",
- ".adoc",
- ".asc"
http://asciidoctor.org/docs/asciidoc-recommended-practices/
Tests
> npm test
Show TxtAST
> ./bin/asciidoc-to-textlint-ast.js < input.adoc | jq .
...
or
> npm install textlint-plugin-asciidoctor
> $(npm bin)/asciidoc-to-textlint-ast < input.adoc | jq .
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Alternatives
License
MIT