UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

12 lines (11 loc) 567 B
import type { Node } from 'prosemirror-model'; import type { MdFormatSerialize, TexFormatSerialize, TexSerializerState } from '../types'; export declare const nodes: import("prosemirror-tables").TableNodes; export declare const toListTable: MdFormatSerialize; export declare const toGFMMarkdownTable: MdFormatSerialize; /** * convert prosemirror table node into latex table */ export declare function renderNodeToLatex(state: TexSerializerState, node: Node): void; export declare const toMarkdown: MdFormatSerialize; export declare const toTex: TexFormatSerialize;