@martin-hillford/markdown-ts-react
Version:
This is a React wrapper for the markdown-ts library. Please, see <https://github.com/martin-hillford/markdown-ts> for more information on the supported syntax.
18 lines (17 loc) • 461 B
TypeScript
import { IInlineParser } from '@martin-hillford/markdown-ts';
type Props = {
value: string;
onChange: (value: string) => void;
onCursorMove?: (position: {
start: number;
end: number;
}) => void;
highlighted?: boolean;
inline?: {
parser: IInlineParser;
color: string;
class: string;
}[];
};
export declare const TextEditor: (props: Props) => import("react/jsx-runtime").JSX.Element;
export {};