fix: use rich text in changelog for modrinth modpacks
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
0ff8891c66
commit
25cfa26e7b
@ -4,6 +4,8 @@
|
|||||||
#include <QListView>
|
#include <QListView>
|
||||||
#include <QProxyStyle>
|
#include <QProxyStyle>
|
||||||
|
|
||||||
|
#include <HoeDown.h>
|
||||||
|
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "BuildConfig.h"
|
#include "BuildConfig.h"
|
||||||
#include "InstanceImportTask.h"
|
#include "InstanceImportTask.h"
|
||||||
@ -198,7 +200,8 @@ void ModrinthManagedPackPage::suggestVersion()
|
|||||||
auto index = ui->versionsComboBox->currentIndex();
|
auto index = ui->versionsComboBox->currentIndex();
|
||||||
auto version = m_pack.versions.at(index);
|
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()
|
void ModrinthManagedPackPage::update()
|
||||||
|
Loading…
Reference in New Issue
Block a user