ratex_gpui/lib.rs
1//! `ratex-gpui` — a structural, MathQuill-style math editor for GPUI, built on the
2//! [RaTeX](https://github.com/erweixin/RaTeX) typesetting engine.
3//!
4//! RaTeX is the engine (parse → layout → render); this crate is the **editor + display layer**.
5//!
6//! - [`render`] — display a formula as a `gpui::RenderImage` (or PNG / SVG). Always available.
7//! - [`editor`] — the structural editor. The parse/serialize core ([`editor::model`],
8//! [`editor::latex`]) is always built; the interactive editor ([`MathEditor`] + the
9//! `cursor` / `geometry` / `input` / `view` modules) is behind the **`editor`** feature
10//! (enabled by default). For a render-only build, depend with `default-features = false`.
11
12pub mod editor;
13pub mod render;
14
15pub use editor::latex::parse_latex;
16
17#[cfg(feature = "editor")]
18pub use editor::view::{MathAlign, MathEditor, MathNav, MathTheme};