View as Markdown

API reference: @salmonui/rich-text

findBlockfunction

import { findBlock } from '@salmonui/rich-text';
function findBlock(blocks: readonly Block[], id: string): Block | undefined;

Finds a block by id anywhere in the tree (depth-first, document order).