模組: @lexical/markdown
類型別名
ElementTransformer
Ƭ ElementTransformer: Object
類型定義
名稱 | 類型 |
---|---|
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" |
定義於
packages/lexical-markdown/src/MarkdownTransformers.ts:46
TextFormatTransformer
Ƭ TextFormatTransformer: Readonly
<{ format
: ReadonlyArray
<TextFormatType
> ; intraword?
: boolean
; tag
: string
; type
: "text-format"
}>
定義於
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"
}>
定義於
packages/lexical-markdown/src/MarkdownTransformers.ts:70
Transformer
Ƭ Transformer: ElementTransformer
| TextFormatTransformer
| TextMatchTransformer
定義於
packages/lexical-markdown/src/MarkdownTransformers.ts:41
變數
BOLD_ITALIC_STAR
• Const
BOLD_ITALIC_STAR: TextFormatTransformer
定義於
packages/lexical-markdown/src/MarkdownTransformers.ts:308