asciidork_dr_html_backend/
lib.rs

1use std::error::Error;
2
3extern crate asciidork_ast as ast;
4extern crate asciidork_backend as backend;
5extern crate asciidork_eval as eval;
6
7mod asciidoctor_html;
8pub mod css;
9mod htmlbuf;
10mod open_tag;
11pub mod section;
12mod table;
13
14pub use asciidoctor_html::AsciidoctorHtml;
15pub use backend::Backend;
16
17pub fn convert(document: ast::Document) -> Result<String, Box<dyn Error>> {
18  Ok(eval::eval(&document, AsciidoctorHtml::new())?)
19}
20
21mod internal {
22  pub use std::borrow::Cow;
23  pub use std::convert::Infallible;
24  pub use std::mem;
25
26  pub use lazy_static::lazy_static;
27  pub use regex::Regex;
28
29  pub use crate::asciidoctor_html::EphemeralState;
30  pub use crate::htmlbuf::*;
31  pub use crate::open_tag::*;
32  pub use crate::section;
33  pub use crate::AsciidoctorHtml;
34  pub use asciidork_core::*;
35  pub use ast::prelude::*;
36  pub use backend::prelude::*;
37  pub use backend::utils;
38  pub use eval::helpers;
39}