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.
1 parent 996c1b1 commit f7eda70Copy full SHA for f7eda70
src/node/plugins/url.ts
@@ -1,3 +1,5 @@
1
export const url = (value: string, link?: string) => {
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
+
4
+ return `<a href="https://github.com/${ link }" target="_blank" rel="noopener noreferrer">${ value } <ExternalLinkIcon /></a>`
5
}
0 commit comments