UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

7 lines (6 loc) 373 B
import type { Node as ProsemirrorNode } from 'prosemirror-model'; import type { GenericNode } from 'mystjs'; import type { Root } from '../../spec'; import type { MdastOptions } from '../types'; export declare function toMdast(doc: ProsemirrorNode, opts?: MdastOptions): Root; export declare function toMdastSnippet(doc: ProsemirrorNode, opts?: MdastOptions): GenericNode;