Files
lexical/packages/lexical-react/flow/LexicalMarkdownShortcutPlugin.js.flow
Kevin Ansfield 328e63c98e Exported DEFAULT_TRANSFORMERS array in react LexicalMarkdownShortcutPlugin (#2878)
The `LexicalMarkdownShortcutPlugin` package extends the defaults from `@lexical/markdown` with a HR transform but didn't expose that default list making it harder for anyone wanting to use the defaults plus their own extensions.
2022-08-24 08:12:12 -06:00

17 lines
428 B
Plaintext

/**
* 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.
*
* @flow strict
*/
import type {Transformer} from '@lexical/markdown';
declare export var DEFAULT_TRANSFORMERS: Array<Transformer>;
declare export function MarkdownShortcutPlugin({
transformers?: Array<Transformer>,
}): React$Node;