Skip to main content

insert

Function insert 

Source
pub fn insert(
    body: &mut TextBody,
    pos: Pos,
    text: &str,
    props: Option<RunProps>,
) -> Pos
Expand description

Insert text at pos (with props, else the props at pos). \n starts a new paragraph (same level and paragraph props); \u{b} inserts a line break. Returns the caret after it.