Module: @lexical/markdown
Type Aliases
ElementTransformer
Ƭ ElementTransformer: Object
Type declaration
Name | Type |
---|---|
dependencies | Klass <LexicalNode >[] |
export | (node : LexicalNode , traverseChildren : (node : ElementNode ) => string ) => string | null |
regExp | RegExp |
replace | (parentNode : ElementNode , children : LexicalNode [], match : string [], isImport : boolean ) => void |
type | "element" |
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:46
TextFormatTransformer
Ƭ TextFormatTransformer: Readonly
<{ format
: ReadonlyArray
<TextFormatType
> ; intraword?
: boolean
; tag
: string
; type
: "text-format"
}>
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:63
TextMatchTransformer
Ƭ TextMatchTransformer: Readonly
<{ dependencies
: Klass
<LexicalNode
>[] ; export
: (node
: LexicalNode
, exportChildren
: (node
: ElementNode
) => string
, exportFormat
: (node
: TextNode
, textContent
: string
) => string
) => string
| null
; importRegExp
: RegExp
; regExp
: RegExp
; replace
: (node
: TextNode
, match
: RegExpMatchArray
) => void
; trigger
: string
; type
: "text-match"
}>
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:70
Transformer
Ƭ Transformer: ElementTransformer
| TextFormatTransformer
| TextMatchTransformer
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:41
Variables
BOLD_ITALIC_STAR
• Const
BOLD_ITALIC_STAR: TextFormatTransformer
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:308
BOLD_ITALIC_UNDERSCORE
• Const
BOLD_ITALIC_UNDERSCORE: TextFormatTransformer
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:314
BOLD_STAR
• Const
BOLD_STAR: TextFormatTransformer
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:321
BOLD_UNDERSCORE
• Const
BOLD_UNDERSCORE: TextFormatTransformer
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:327
CHECK_LIST
• Const
CHECK_LIST: ElementTransformer
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:276
CODE
• Const
CODE: ElementTransformer
Defined in
packages/lexical-markdown/src/MarkdownTransformers.ts:244
ELEMENT_TRANSFORMERS
• Const
ELEMENT_TRANSFORMERS: ElementTransformer
[]
Defined in
packages/lexical-markdown/src/index.ts:39