From 2a5306eb9de7b2122feabc18bc45ee7673f054bf Mon Sep 17 00:00:00 2001 From: Julian Date: Fri, 6 Oct 2023 17:49:53 +0200 Subject: [PATCH] Just use href if link contains the http or https scheme --- src/commands/external/ArticleCommand.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/external/ArticleCommand.js b/src/commands/external/ArticleCommand.js index c611fdfa4..fedc9b3d7 100644 --- a/src/commands/external/ArticleCommand.js +++ b/src/commands/external/ArticleCommand.js @@ -225,6 +225,10 @@ export default class ArticleCommand extends Command { return href; } + if (content.includes('https://') || content.includes('http://')) { + return href; + } + return hyperlink(content, href); } });