diff options
author | Joshua Goins <josh@redstrate.com> | 2023-01-06 15:26:26 -0500 |
---|---|---|
committer | Joshua Goins <josh@redstrate.com> | 2023-01-12 10:08:52 -0500 |
commit | 24a4bd3a1c33702946b88a3d8017268fb8134210 (patch) | |
tree | 971b84ab358661876d434f4364540a57e1845a5a /launcher/ui/dialogs/AboutDialog.cpp | |
parent | 9901ecda4938827986e4754f770a2b35b64bb774 (diff) | |
download | PrismLauncher-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/dialogs/AboutDialog.cpp')
-rw-r--r-- | launcher/ui/dialogs/AboutDialog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/launcher/ui/dialogs/AboutDialog.cpp b/launcher/ui/dialogs/AboutDialog.cpp index a36e4a3d..76e3d8ed 100644 --- a/launcher/ui/dialogs/AboutDialog.cpp +++ b/launcher/ui/dialogs/AboutDialog.cpp @@ -39,12 +39,11 @@ #include <QIcon> #include "Application.h" #include "BuildConfig.h" +#include "Markdown.h" #include <net/NetJob.h> #include <qobject.h> -#include "HoeDown.h" - namespace { QString getLink(QString link, QString name) { return QString("<<a href='%1'>%2</a>>").arg(link).arg(name); @@ -114,10 +113,9 @@ QString getCreditsHtml() QString getLicenseHtml() { - HoeDown hoedown; QFile dataFile(":/documents/COPYING.md"); dataFile.open(QIODevice::ReadOnly); - QString output = hoedown.process(dataFile.readAll()); + QString output = markdownToHTML(dataFile.readAll()); return output; } |