Asciidoctor support for textlint using asciidoctor.js.
> npm install textlint-plugin-asciidoctor
- Currently, some syntax (e.g., comment, preamble) are not supported.
- If you find unsupported syntax, please create an issue.
- See test code for details.
{
"plugins": [
"asciidoctor"
]
}
This plugin recognize these file extension as asciidoc file.
- ".asciidoc",
- ".adoc",
- ".asc"
http://asciidoctor.org/docs/asciidoc-recommended-practices/
> npm test
> ./bin/asciidoc-to-textlint-ast.js < input.adoc | jq .
...
or
> npm install textlint-plugin-asciidoctor
> $(npm bin)/asciidoc-to-textlint-ast < input.adoc | jq .
- 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
MIT