diff --git a/src/core/hooks/AutoLink.js b/src/core/hooks/AutoLink.js index d17cde9f0..cdd09bc3a 100644 --- a/src/core/hooks/AutoLink.js +++ b/src/core/hooks/AutoLink.js @@ -212,8 +212,9 @@ export default class AutoLink extends SyntaxBase { } } const processedURL = this.urlProcessor(url, 'autolink'); - return `${$e(linkText)}`; + return `${$e(linkText).replace(/_/g, '\\_')}`; } }