jats-utils
Version:
Utility functions for working with JATS in Typescript
8 lines • 500 B
TypeScript
import type { GenericNode, GenericParent } from 'myst-common';
import type { Element } from 'xml-js';
export declare function convertToUnist(node: Element): 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