marklassian
Version:
Converts markdown to the Atlassian Document Format (ADF)
19 lines (18 loc) • 371 B
TypeScript
type AdfNode = {
type: string;
attrs?: Record<string, any>;
content?: AdfNode[];
marks?: AdfMark[];
text?: string;
};
type AdfMark = {
type: string;
attrs?: Record<string, any>;
};
type AdfDocument = {
version: 1;
type: "doc";
content: AdfNode[];
};
export declare function markdownToAdf(markdown: string): AdfDocument;
export {};