@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
32 lines (31 loc) • 1.02 kB
TypeScript
import type { Admonition } from '../spec';
import type { MdFormatSerialize } from '../serialize/types';
import type { MyNodeSpec } from './types';
export declare enum CalloutKinds {
'active' = "active",
'success' = "success",
'info' = "info",
'warning' = "warning",
'danger' = "danger"
}
export declare enum AdmonitionKinds {
'attention' = "attention",
'caution' = "caution",
'danger' = "danger",
'error' = "error",
'hint' = "hint",
'important' = "important",
'note' = "note",
'seealso' = "seealso",
'tip' = "tip",
'warning' = "warning"
}
export declare function calloutKindToAdmonition(kind: CalloutKinds): string;
export declare type Attrs = {
kind: CalloutKinds;
};
export declare function admonitionToCalloutKind(kind?: string): CalloutKinds;
declare const callout: MyNodeSpec<Attrs, Admonition>;
export declare const toMarkdown: MdFormatSerialize;
export declare const toTex: import("../serialize/types").TexFormatSerialize;
export default callout;