contentful-rich-text-html-parser
Version:
Convert any HTML to the Contentful Rich Text format
10 lines (9 loc) • 566 B
TypeScript
import { Block, Inline } from "@contentful/rich-text-types";
import type { TagConverter, TextConverter } from "./types.js";
export declare const convertTagToBlock: TagConverter<Block>;
export declare const convertTagToInline: TagConverter<Inline>;
export declare const convertTagToHyperlink: TagConverter<Inline>;
export declare const convertTagToMark: TagConverter;
export declare const convertTagToChildren: TagConverter<Block>;
export declare const convertTextNodeToText: TextConverter;
export declare const convertTextNodeToParagraphedText: TagConverter<Block>;