UNPKG

datocms-contentful-to-structured-text

Version:

Convert Contentful Rich Text to a valid DatoCMS Structured Text `dast` document

6 lines (5 loc) 369 B
import { InlineNode } from 'datocms-structured-text-utils'; import { ContentfulList, Context, Node } from '../types'; export declare const wrapInParagraph: (children: InlineNode[]) => Node; export declare function wrapLinksAndSpansInSingleParagraph(nodes: Node[]): Node[]; export declare function wrapListItems(node: ContentfulList, context: Context): Promise<Node[]>;