diff --git a/lib/node/plugins/url.js b/lib/node/plugins/url.js index c56e419..bf15fda 100644 --- a/lib/node/plugins/url.js +++ b/lib/node/plugins/url.js @@ -1,3 +1,4 @@ export const url = (value, link) => { - return `${value} `; + link = (link || value).replace('https://github.com/', ''); + return `${value} `; }; diff --git a/package.json b/package.json index e6329a3..41c5edb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuepress-plugin-github-linkify", - "version": "1.0.10", + "version": "1.0.11", "description": "Fix display of GitHub links for Vuepress 2", "author": { "name": "Andrey Helldar",