@uiw/react-md-editor
Version:
A markdown editor with preview, implemented with React.js and TypeScript.
14 lines (13 loc) • 640 B
TypeScript
import { ICommand, TextState, TextAreaTextApi } from './';
export declare type AlterLineFunction = (line: string, index: number) => string;
/**
* Inserts insertionString before each line
*/
export declare function insertBeforeEachLine(selectedText: string, insertBefore: string | AlterLineFunction): {
modifiedText: string;
insertionLength: number;
};
export declare const makeList: (state: TextState, api: TextAreaTextApi, insertBefore: string | AlterLineFunction) => void;
export declare const unorderedListCommand: ICommand;
export declare const orderedListCommand: ICommand;
export declare const checkedListCommand: ICommand;