Crate asciidoc_parser

Source
Expand description

§AsciiDoc parser for Rust

CI Latest Version docs.rs Codecov CodSpeed

This is an effort to write a semantic parser for the AsciiDoc language.

The project is in its infancy as of October 2024 and in no way ready to use.

You’re welcome to follow along and contribute with the understanding that I may or may not drive this project a mature (1.0) release.

§Known limitations

  • Parsing UTF-16 content is not supported. (UTF-16 documents must be re-encoded to UTF-8 prior to parsing with this crate.) I have no plans to support UTF-16 content.

§License

The asciidoc-parser crate is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT.

Note that some components and dependent crates may be licensed under different terms; please check the license terms for each crate and component for details.

Re-exports§

Modules§

  • Element attributes are a powerful means of controlling the built-in settings of individual block and inline elements in the AsciiDoc syntax. They can also be used to add supplemental information, such as citation metadata and fallback content, to certain elements.
  • Block elements form the main structure of an AsciiDoc document, starting with the document itself.
  • Describes the top-level document structure.
  • An inline element is a phrase (i.e., span of content) within a block element or one of its attributes in an AsciiDoc document.
  • String types that facilitate parsing.

Structs§

  • Represents a subset of the overall UTF-8 input stream.

Traits§

  • Any syntactic element can describe its location within the source material using this trait.