Skip to main content

block_state

Function block_state 

Source
pub fn block_state(
    content: &Element,
    path: &[usize],
    styles: &Styles,
) -> (Option<u8>, Option<ListKind>)
Expand description

A paragraph’s heading level and the kind of list it is an item of, for a button to light. A paragraph in a list whose style the document does not give is taken for a bulleted one, which is how it is drawn.