latex_rust/render/mod.rs
1//! Render backends: SVG, PNG (`tiny-skia`, feature `png`), and egui
2//! (`features = ["egui"]`).
3//!
4//! Pipeline: [`crate::layout::MathBox`] → this module. SVG is the v1 output.
5//! PNG and egui are optional. Without their features those entry points return
6//! [`crate::Error::Unsupported`].
7
8pub mod egui;
9pub mod png;
10pub mod svg;
11
12#[cfg(feature = "egui")]
13pub use egui::{latex_to_shapes, paint_egui, shapes};
14pub use egui::{render_egui, EguiOptions};
15pub use png::{latex_to_png, render_png, PngBackground, PngOptions};
16pub use svg::{latex_to_svg, render_svg, SvgOptions};