diff options
author | Alystrasz <contact@remyraes.com> | 2022-08-09 10:59:53 +0200 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-08-09 10:59:53 +0200 |
commit | 3d9a315f31be7345b0d2ebf3a8beba55f547749b (patch) | |
tree | db39c3f38ef1fcbcf6a0e2444470f32fc9058b6a /src/app/launcher.js | |
parent | 58b3ad7bab848f608d5b5f4f319de1da519eacd0 (diff) | |
parent | 5106d9ed409a3cc91a7755f961fab1bf91d8b7fb (diff) | |
download | Viper-3d9a315f31be7345b0d2ebf3a8beba55f547749b.tar.gz Viper-3d9a315f31be7345b0d2ebf3a8beba55f547749b.zip |
Merge branch 'main' into feat/ci-builds
Diffstat (limited to 'src/app/launcher.js')
-rw-r--r-- | src/app/launcher.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/app/launcher.js b/src/app/launcher.js index fbeb703..e1dbbe0 100644 --- a/src/app/launcher.js +++ b/src/app/launcher.js @@ -26,13 +26,17 @@ function page(page) { function formatRelease(notes) { let content = ""; - for (let release of notes) { - if (release.prerelease) {continue} - content += "# " + release.name + "\n\n" + release.body + "\n\n\n"; + if (notes.length === 1) { + content = notes[0]; + } else { + for (let release of notes) { + if (release.prerelease) {continue} + content += "# " + release.name + "\n\n" + release.body + "\n\n\n"; + } + + content = content.replaceAll(/\@(\S+)/g, `<a href="https://github.com/$1">@$1</a>`); } - content = content.replaceAll(/\@(\S+)/g, `<a href="https://github.com/$1">@$1</a>`); - return markdown(content, { breaks: true }); |