adoctra 0.0.2

An AsciiDoc processor and publishing toolchain, written in Rust
Documentation
//! `adoctra`: umbrella crate. Re-exports the core editor/parse API and, behind
//! feature flags, the native backends.
//!
//! ```
//! let result = adoctra::parse("= Hello\n\nWorld");
//! assert!(result.diagnostics.is_empty());
//! # #[cfg(feature = "html")]
//! # {
//! use adoctra::Backend;
//! let html = adoctra::html::HtmlBackend::new().convert(&result.document).unwrap();
//! assert!(String::from_utf8(html).unwrap().contains("<h1>Hello</h1>"));
//! # }
//! ```

pub use adoctra_core::{
    is_root_path, parent_system_dir, parse, parse_resource, parse_resource_with_start,
    parse_with_options, parse_with_start, posixify_path, resolve_system_path, tokens,
    tokens_resource, tokens_with_options, Attributes, Author, AuthorDetails, Backend,
    BinaryResource, Block, BlockKind, ConversionStart, DateTime, Diagnostic, DiagnosticCursor,
    DiagnosticLocation, DiagnosticReport, DocinfoLocation, Document, DocumentDates, DocumentHeader,
    Error, IncludeInput, IncludeLimits, IncludeResource, Inline, MemoryResources,
    OmittedSourceLine, OmittedSourceSpan, OutputPaths, OutputTarget, ParseOptions, ParseResult,
    Registry, Resource, ResourceError, ResourceErrorKind, ResourceProvider, ResourceRequest,
    ResourceResult, Result, Revision, SafeMode, Severity, SourceFile, SourceId, SourceMap,
    SourcePosition, Span, SystemPath, Token, TokenKind, TreeProcessor, COMPATIBILITY_VERSION,
};

/// The extension API (block, block macro and tree processors).
pub use adoctra_core::extension;
pub use adoctra_core::{
    AttrKey, BlockContext, BlockMacroProcessor, BlockMacroRequest, BlockProcessor, BlockRequest,
    ContentModel, ExtensionAttributes, MacroContent, NewBlock, NewBlockKind, ProcessContext,
};

#[cfg(feature = "html")]
pub use adoctra_html as html;

#[cfg(feature = "docx")]
pub use adoctra_docx as docx;

#[cfg(feature = "json")]
pub use adoctra_json as json;