We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e54e64d + 72f5865 commit 6861fbcCopy full SHA for 6861fbc
lib/node/plugins/url.js
@@ -1,3 +1,4 @@
1
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>`;
+ link = (link || value).replace('https://github.com/', '');
3
+ return `<a href="https://github.com/${link}" target="_blank" rel="noopener noreferrer">${value} <ExternalLinkIcon /></a>`;
4
};
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",
5
"author": {
6
"name": "Andrey Helldar",
0 commit comments