nice-ui
Version:
React design system, components, and utilities
12 lines (11 loc) • 428 B
TypeScript
import { TNode, Flat } from 'mdast-flat/lib/types';
/**
* If parent of a node in the original document is 0, it means this node is a
* block node at the higher most level (not nested in blockquote or a list).
*
* @todo Make this work for merged in documents.
*
* @param {TNode} node MDAST-FLAT node.
*/
declare const isFirstLevelBlockElement: (node: TNode, ast: Flat) => boolean;
export default isFirstLevelBlockElement;