aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance/ManagedPackPage.cpp
diff options
context:
space:
mode:
authorJoshua Goins <josh@redstrate.com>2023-01-06 15:26:26 -0500
committerJoshua Goins <josh@redstrate.com>2023-01-12 10:08:52 -0500
commit24a4bd3a1c33702946b88a3d8017268fb8134210 (patch)
tree971b84ab358661876d434f4364540a57e1845a5a /launcher/ui/pages/instance/ManagedPackPage.cpp
parent9901ecda4938827986e4754f770a2b35b64bb774 (diff)
downloadPrismLauncher-24a4bd3a1c33702946b88a3d8017268fb8134210.tar.gz
PrismLauncher-24a4bd3a1c33702946b88a3d8017268fb8134210.tar.bz2
PrismLauncher-24a4bd3a1c33702946b88a3d8017268fb8134210.zip
refactor: replace hoedown markdown parser with cmark
Signed-off-by: Joshua Goins <josh@redstrate.com>
Diffstat (limited to 'launcher/ui/pages/instance/ManagedPackPage.cpp')
-rw-r--r--launcher/ui/pages/instance/ManagedPackPage.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/launcher/ui/pages/instance/ManagedPackPage.cpp b/launcher/ui/pages/instance/ManagedPackPage.cpp
index 4de80468..8d56d894 100644
--- a/launcher/ui/pages/instance/ManagedPackPage.cpp
+++ b/launcher/ui/pages/instance/ManagedPackPage.cpp
@@ -9,14 +9,13 @@
#include <QProxyStyle>
#include <QStyleFactory>
-#include <HoeDown.h>
-
#include "Application.h"
#include "BuildConfig.h"
#include "InstanceImportTask.h"
#include "InstanceList.h"
#include "InstanceTask.h"
#include "Json.h"
+#include "Markdown.h"
#include "modplatform/modrinth/ModrinthPackManifest.h"
@@ -263,8 +262,7 @@ void ModrinthManagedPackPage::suggestVersion()
auto index = ui->versionsComboBox->currentIndex();
auto version = m_pack.versions.at(index);
- HoeDown md_parser;
- ui->changelogTextBrowser->setHtml(md_parser.process(version.changelog.toUtf8()));
+ ui->changelogTextBrowser->setHtml(markdownToHTML(version.changelog.toUtf8()));
ManagedPackPage::suggestVersion();
}