Skip to content

Commit 6861fbc

Browse files
Merge remote-tracking branch 'origin/main'
2 parents e54e64d + 72f5865 commit 6861fbc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/node/plugins/url.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export const url = (value, link) => {
2-
return `<a href="https://github.com/${(link || value).replace('github.com', '')}" target="_blank" rel="noopener noreferrer">${value} <ExternalLinkIcon /></a>`;
2+
link = (link || value).replace('https://github.com/', '');
3+
return `<a href="https://github.com/${link}" target="_blank" rel="noopener noreferrer">${value} <ExternalLinkIcon /></a>`;
34
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuepress-plugin-github-linkify",
3-
"version": "1.0.10",
3+
"version": "1.0.11",
44
"description": "Fix display of GitHub links for Vuepress 2",
55
"author": {
66
"name": "Andrey Helldar",

0 commit comments

Comments
 (0)