@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
16 lines (15 loc) • 533 B
TypeScript
import type { Image } from '../spec';
import type { NumberedNode, MyNodeSpec, AlignOptions } from './types';
import type { MdFormatSerialize, TexFormatSerialize } from '../serialize/types';
export declare type Attrs = NumberedNode & {
src: string;
alt: string;
title: string;
align: AlignOptions;
width: number | null;
caption: boolean;
};
declare const image: MyNodeSpec<Attrs, Image>;
export declare const toMarkdown: MdFormatSerialize;
export declare const toTex: TexFormatSerialize;
export default image;