diff options
author | 0neGal <mail@0negal.com> | 2023-01-13 00:00:14 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-01-13 00:00:14 +0100 |
commit | 72c3c54dbf24819072fc38eaf552b5870d6bbe57 (patch) | |
tree | 582e5a11e5a8c77be295d146e5a858091f0f56f9 /src/app/launcher.js | |
parent | 876962e00c1df15f3116ef552a6a2be456526dfc (diff) | |
download | Viper-72c3c54dbf24819072fc38eaf552b5870d6bbe57.tar.gz Viper-72c3c54dbf24819072fc38eaf552b5870d6bbe57.zip |
work in progress redesign for release notes
Diffstat (limited to 'src/app/launcher.js')
-rw-r--r-- | src/app/launcher.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/app/launcher.js b/src/app/launcher.js index e1dbbe0..919111f 100644 --- a/src/app/launcher.js +++ b/src/app/launcher.js @@ -31,12 +31,18 @@ function formatRelease(notes) { } else { for (let release of notes) { if (release.prerelease) {continue} - content += "# " + release.name + "\n\n" + release.body + "\n\n\n"; + let new_content = "# " + release.name + "\n\n" + release.body + "\n\n\n"; + content += + "<div class='release-block'>\n" + + markdown(new_content, {breaks: true}) + "\n" + + "</div>"; } content = content.replaceAll(/\@(\S+)/g, `<a href="https://github.com/$1">@$1</a>`); } + console.log(markdown(content, {breaks: true})) + return markdown(content, { breaks: true }); |