API reference: @salmonui/rich-text
updateBlockfunction
import { updateBlock } from '@salmonui/rich-text';function updateBlock(blocks: readonly Block[], id: string, patch: BlockPatch | ((block: Block) => Block)): Block[];
Updates one block: props are merged, type, content and children
replace; or pass a function returning the new block (its id is kept).