View as Markdown

API reference: @salmonui/rich-text

findParentIdfunction

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

Id of the block's parent (null at the top level, undefined when not found).