@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
11 lines (10 loc) • 420 B
TypeScript
import type { Heading } from '../spec';
import type { MdFormatSerialize, TexFormatSerialize } from '../serialize/types';
import type { MyNodeSpec, NumberedNode } from './types';
export declare type Attrs = NumberedNode & {
level: number;
};
declare const heading: MyNodeSpec<Attrs, Heading>;
export declare const toMarkdown: MdFormatSerialize;
export declare const toTex: TexFormatSerialize;
export default heading;