@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
8 lines (7 loc) • 395 B
TypeScript
import type { Node as ProsemirrorNode } from 'prosemirror-model';
import type { MarkdownOptions } from '../types';
export declare function toMyst(doc: ProsemirrorNode, opts?: MarkdownOptions): {
content: string;
mdastSnippets: Record<string, import("mystjs").GenericNode<Record<string, any>>>;
};
export declare function toMarkdown(doc: ProsemirrorNode, opts?: MarkdownOptions): string;