Function process_nodes

Source
pub fn process_nodes<N, S, I, Iter: IntoIterator<Item = I>>(
    editor: &Editor<N, S, I>,
    children: Iter,
) -> Vec<N>
Expand description

Processes input nodes using the editor’s blocks and returns parsed nodes.

This function takes an Editor, which contains a collection of blocks, and a sequence of input nodes. It processes each input node using the editor’s blocks, and if no block accepts an input node, it falls back to the editor’s fallback block (if provided).

The parsed nodes are collected and returned as a Vec.