From 25cfa26e7b24242dec3b775d9b0c09c84f870a39 Mon Sep 17 00:00:00 2001 From: flow Date: Sat, 22 Oct 2022 16:02:10 -0300 Subject: [PATCH] fix: use rich text in changelog for modrinth modpacks Signed-off-by: flow --- launcher/ui/pages/instance/ManagedPackPage.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launcher/ui/pages/instance/ManagedPackPage.cpp b/launcher/ui/pages/instance/ManagedPackPage.cpp index 348dd857..6d051760 100644 --- a/launcher/ui/pages/instance/ManagedPackPage.cpp +++ b/launcher/ui/pages/instance/ManagedPackPage.cpp @@ -4,6 +4,8 @@ #include #include +#include + #include "Application.h" #include "BuildConfig.h" #include "InstanceImportTask.h" @@ -198,7 +200,8 @@ void ModrinthManagedPackPage::suggestVersion() auto index = ui->versionsComboBox->currentIndex(); auto version = m_pack.versions.at(index); - ui->changelogTextBrowser->setText(version.changelog); + HoeDown md_parser; + ui->changelogTextBrowser->setHtml(md_parser.process(version.changelog.toUtf8())); } void ModrinthManagedPackPage::update()