File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/lexical-markdown/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ import type {ListType} from '@lexical/list';
10
10
import type { HeadingTagType } from '@lexical/rich-text' ;
11
11
12
12
import { $createCodeNode , $isCodeNode , CodeNode } from '@lexical/code' ;
13
- import { $createLinkNode , $isLinkNode , LinkNode } from '@lexical/link' ;
13
+ import {
14
+ $createLinkNode ,
15
+ $isAutoLinkNode ,
16
+ $isLinkNode ,
17
+ LinkNode ,
18
+ } from '@lexical/link' ;
14
19
import {
15
20
$createListItemNode ,
16
21
$createListNode ,
@@ -542,7 +547,7 @@ export const ITALIC_UNDERSCORE: TextFormatTransformer = {
542
547
export const LINK : TextMatchTransformer = {
543
548
dependencies : [ LinkNode ] ,
544
549
export : ( node , exportChildren , exportFormat ) => {
545
- if ( ! $isLinkNode ( node ) ) {
550
+ if ( ! $isLinkNode ( node ) || $isAutoLinkNode ( node ) ) {
546
551
return null ;
547
552
}
548
553
const title = node . getTitle ( ) ;
You can’t perform that action at this time.
0 commit comments