@lexical/react
Version:
This package provides Lexical components and hooks for React applications.
21 lines (20 loc) • 802 B
TypeScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { type Transformer } from '@lexical/markdown';
export declare const DEFAULT_TRANSFORMERS: Transformer[];
/**
* Registers Markdown shortcuts so that typing Markdown syntax (for example
* `# ` for a heading or `- ` for a list item) is automatically converted into
* the corresponding nodes as you type. Pass `transformers` to customize which
* shortcuts are active; it defaults to {@link DEFAULT_TRANSFORMERS}.
*
* @returns `null`, this plugin renders no DOM of its own.
*/
export declare function MarkdownShortcutPlugin({ transformers, }: Readonly<{
transformers?: Transformer[];
}>): null;