Skip to main content

source_excerpt

Function source_excerpt 

Source
pub fn source_excerpt(text: &str) -> &str
Expand description

The first crate::math::MAX_SOURCE_BYTES bytes of an equation’s source, cut at a char boundary. A longer source never lays out (the editor refuses it, and a file can carry one of megabytes), so what shows it as text, the sheet painter and the PDF fallback, shows this much and does no work on the rest.