1.1.0 • Published 4 years ago

textlint-plugin-asciidoctor v1.1.0

Weekly downloads
90
License
MIT
Repository
github
Last release
4 years ago

textlint-plugin-asciidoctor

Asciidoctor support for textlint using asciidoctor.js.

Travis CI Build Status npm version

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Alternatives

License

MIT

1.1.0

4 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago