Skip to content

Commit

Permalink
Just use href if link contains the http or https scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Oct 6, 2023
1 parent fe0f540 commit 2a5306e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/external/ArticleCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit 2a5306e

Please sign in to comment.