From 72f5865a7f3b83bbd49d534015df4720643b2859 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 27 Feb 2023 11:25:24 +0000 Subject: [PATCH] Release v1.0.11 --- lib/node/plugins/url.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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",