Skip to main content

rich_of_blocks

Function rich_of_blocks 

pub fn rich_of_blocks(blocks: &[BlockContent], rich: &RichText) -> RichText
Expand description

rich with the paragraphs blocks are: everything an editor’s document writes back (blocks_as_written’s inverse). A paragraph the person did not touch is kept as rich wrote it, marks the editor cannot draw included: it is found again among rich’s blocks by what it now reads as, so all it holds beyond that reads on. One they changed is written from what the editor shows. How each reference reads inline stays as rich said it, since that is the reader’s, not the text’s.