pub mod base_css;
pub mod code_languages;
#[cfg(feature = "render-diagrams")]
pub mod diagram;
pub mod markdown;
#[cfg(feature = "render-math")]
pub mod math;
pub mod options;
pub mod plarform_mentions;
pub mod preview_document;
#[cfg(feature = "render-syntax-highlighting")]
pub mod syntect_highlighter;
pub use code_languages::*;
pub use markdown::*;
pub use options::*;
pub use preview_document::*;
#[cfg(feature = "render-syntax-highlighting")]
pub use syntect_highlighter::*;
use crate::parser::Document;
pub fn render(
document: &Document,
options: &RenderOptions,
) -> Result<String, Box<dyn std::error::Error>> {
log::info!("Starting HTML render");
let html = render_html(document, options)?;
log::debug!("Generated {} bytes of HTML", html.len());
Ok(html)
}