@wordpress/blocks
Version:
Block API for WordPress.
16 lines • 695 B
TypeScript
/**
* Looks for `<!--nextpage-->` and `<!--more-->` comments and
* replaces them with a custom element representing a future block.
*
* The custom element is a way to bypass the rest of the `raw-handling`
* transforms, which would eliminate other kinds of node with which to carry
* `<!--more-->`'s data: nodes with `data` attributes, empty paragraphs, etc.
*
* The custom element is then expected to be recognized by any registered
* block's `raw` transform.
*
* @param node The node to be processed.
* @param doc The document of the node.
*/
export default function specialCommentConverter(node: Node, doc: Document): void;
//# sourceMappingURL=special-comment-converter.d.ts.map