pub fn block(doc: &Document, new: NewBlock, builder: &mut CommitBuilder)Expand description
Inventory row “New Block”: a drag stamps a child block on scope — the
document root is a scope like any other. The parent’s child list is
derived, so parent is the whole structural write.
The block is born named, which is why this needs the document: the number is the first one no other block’s title claims. Naming it here rather than at each surface means the canvas, the breadcrumb, the hierarchy, the palette and the PDF outline are all fixed by one policy, and the name is a real, editable, journalled one rather than a label five renderers have to agree on.