Skip to content

Commit 51bf22b

Browse files
committed
undo change
1 parent a0898cd commit 51bf22b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/lexical-markdown/src/MarkdownTransformers.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -548,10 +548,7 @@ export const LINK: TextMatchTransformer = {
548548
const textContent = exportChildren(node);
549549

550550
const linkContent = title
551-
? `[${textContent}](${node.getURL()} "${title
552-
// Escape quotes and backslashes in the title so that it doesn't break the markdown
553-
.replace(/\\/g, '\\\\')
554-
.replace(/"/g, '\\"')}")`
551+
? `[${textContent}](${node.getURL()} "${title}")`
555552
: `[${textContent}](${node.getURL()})`;
556553

557554
return linkContent;

0 commit comments

Comments
 (0)