pub mod base_css;
pub mod code_languages;
pub mod diagram;
pub mod markdown;
pub mod math;
pub mod options;
pub mod plarform_mentions;
pub mod preview_document;
pub mod syntect_highlighter;
pub use code_languages::*;
pub use markdown::*;
pub use options::*;
pub use preview_document::*;
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)
}