@atlaskit/editor-jira-transformer
Version:
Editor JIRA transformer's
13 lines (12 loc) • 677 B
TypeScript
import { Fragment, type Mark, type Node as PMNode, type Schema, type NodeType } from '@atlaskit/editor-prosemirror/model';
/**
* Ensure that each node in the fragment is a block, wrapping
* in a block node if necessary.
*/
export declare function ensureBlocks(fragment: Fragment, schema: Schema, nodeType?: NodeType): Fragment;
/**
* This function will convert all content to inline nodes
*/
export declare const ensureInline: (schema: Schema, content: Fragment, supportedMarks: Mark[]) => Fragment;
export declare function convert(content: Fragment, node: Node, schema: Schema): Fragment | PMNode | null | undefined;
export declare function bfsOrder(root: Node): Node[];