fn document(
    w: &mut Buffer,
    cx: &mut Context<'_>,
    item: &Item,
    parent: Option<&Item>,
    heading_offset: HeadingOffset
)