aboutsummaryrefslogtreecommitdiff
path: root/src/app/launcher.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-01-13 00:00:14 +0100
committer0neGal <mail@0negal.com>2023-01-13 00:00:14 +0100
commit72c3c54dbf24819072fc38eaf552b5870d6bbe57 (patch)
tree582e5a11e5a8c77be295d146e5a858091f0f56f9 /src/app/launcher.js
parent876962e00c1df15f3116ef552a6a2be456526dfc (diff)
downloadViper-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.js8
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
});