UNPKG

jats-utils

Version:

Utility functions for working with JATS in Typescript

11 lines 601 B
import type { GenericNode, GenericParent } from 'myst-common'; import type { Element } from 'xml-js'; export type ConvertToUnistContext = { insidePreformat?: boolean; }; export declare function convertToUnist(node: Element, ctx?: ConvertToUnistContext): GenericNode | GenericParent | undefined; export declare function convertToXml(node: GenericNode): Element; export declare function escapeForXML(text: string): string; export declare function toDate(date?: GenericParent): Date | undefined; export declare function formatDate(date?: Date): string | undefined; //# sourceMappingURL=utils.d.ts.map