UNPKG

@wordpress/blocks

Version:
22 lines 624 B
import type { Block } from '../../types'; export { pasteHandler } from './paste-handler'; export declare function deprecatedGetPhrasingContentSchema(context: string): Record<string, unknown>; /** * Converts an HTML string to known blocks. * * @param options Options. * @param options.HTML The HTML to convert. * * @example * ```js * import { rawHandler } from '@wordpress/blocks'; * * const blocks = rawHandler( { HTML: '<p>Hello</p><p>World</p>' } ); * ``` * * @return A list of blocks. */ export declare function rawHandler({ HTML }: { HTML?: string; }): Block[]; //# sourceMappingURL=index.d.ts.map