Skip to main content

InlineMathRenderer

Type Alias InlineMathRenderer 

Source
pub type InlineMathRenderer = Rc<dyn Fn(SharedString) -> Option<(Arc<RenderImage>, f32, f32)>>;
Expand description

Resolves an inline $…$ formula’s LaTeX to its typeset raster + logical (display) px size at text size, so the renderer can reserve a gap in the line and paint the image over it. The host owns the (cached, off-thread) render; None while it’s still rasterizing (the raw $…$ shows until then). Set via MarkdownView::on_inline_math.

Aliased Type§

pub struct InlineMathRenderer { /* private fields */ }