We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0898cd commit 51bf22bCopy full SHA for 51bf22b
packages/lexical-markdown/src/MarkdownTransformers.ts
@@ -548,10 +548,7 @@ export const LINK: TextMatchTransformer = {
548
const textContent = exportChildren(node);
549
550
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, '\\"')}")`
+ ? `[${textContent}](${node.getURL()} "${title}")`
555
: `[${textContent}](${node.getURL()})`;
556
557
return linkContent;
0 commit comments