aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-05-03 15:04:14 +0200
committer0neGal <mail@0negal.com>2022-05-03 15:04:14 +0200
commit5426a3182395eb0ab6bd4e02b67cef1df9af6ced (patch)
tree05c75b5b311f74ea6dad189e3aedf60566f9b0d5
parentfc88fc0af4ea3139b81378a03f337a55055a5245 (diff)
downloadViper-5426a3182395eb0ab6bd4e02b67cef1df9af6ced.tar.gz
Viper-5426a3182395eb0ab6bd4e02b67cef1df9af6ced.zip
re-implements user links in release notes (#88)
Instead of updating the branch it was easier to simply add this, I don't plan to add the issue/PR support, as it's complicated with no real benefit, as NS seems to already link the PR's themselves.
-rw-r--r--src/app/launcher.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/launcher.js b/src/app/launcher.js
index ed6a513..51d3a63 100644
--- a/src/app/launcher.js
+++ b/src/app/launcher.js
@@ -27,6 +27,8 @@ function formatRelease(notes) {
content += "# " + release.name + "\n\n" + release.body + "\n\n\n";
}
+ content = content.replaceAll(/\@(\S+)/g, `<a href="https://github.com/$1">@$1</a>`);
+
return markdown(content, {
breaks: true
});