orgast-util-to-string
Version:
uniorg (orgast) utility to get the plain text content of a node
11 lines (10 loc) • 357 B
TypeScript
import type { Node } from 'unist';
export interface Options {
}
/**
* Get the text content of a node.
* Prefer the node’s plain-text fields, otherwise serialize its children,
* and if the given value is an array, serialize the nodes in it.
*/
export declare function toString(node: Node | Node[], _options?: Options): string;
export default toString;