usfm-editor
Version:
A WYSIWYG editor component for USFM
9 lines (8 loc) • 307 B
TypeScript
import { Descendant } from "slate";
declare type TransformElement = Record<string, unknown> & {
text?: string;
content?: string;
};
export declare function usfmToSlate(usfm: string): Descendant[];
export declare function transformToSlate(el: TransformElement): Descendant | Descendant[];
export {};