UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

19 lines (18 loc) 619 B
import type { MdFormatSerialize, TexFormatSerialize } from '../serialize/types'; import type { Cite, CrossReference } from '../spec'; import type { MyNodeSpec } from './types'; import { ReferenceKind } from './types'; export declare type Attrs = { key: string | null; kind: ReferenceKind; label: string | null; text: string | null; title: string | null; }; declare type Legacy = { inline: undefined; }; declare const cite: MyNodeSpec<Attrs & Legacy, Cite | CrossReference>; export declare const toMarkdown: MdFormatSerialize; export declare const toTex: TexFormatSerialize; export default cite;