refactor: replace hoedown markdown parser with cmark
Signed-off-by: Joshua Goins <josh@redstrate.com>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user