fix: use rich text in changelog for modrinth modpacks

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-10-22 16:02:10 -03:00
parent 0ff8891c66
commit 25cfa26e7b
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -4,6 +4,8 @@
#include <QListView>
#include <QProxyStyle>
#include <HoeDown.h>
#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()