Disable url smart paste in autolinks (#204673)

Fixes #188859
This commit is contained in:
Matt Bierner
2024-02-07 18:01:32 -08:00
committed by GitHub
parent 2eb66826bd
commit da36e0eba1
2 changed files with 7 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ const smartPasteLineRegexes = [
{ regex: /\$\$[\s\S]*?\$\$/gm }, // In a fenced math block
{ regex: /`[^`]*`/g }, // In inline code
{ regex: /\$[^$]*\$/g }, // In inline math
{ regex: /<[^<>\s]*>/g }, // Autolink
{ regex: /^[ ]{0,3}\[\w+\]:\s.*$/g, isWholeLine: true }, // Block link definition (needed as tokens are not generated for these)
];