Use internal markdown implementation
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
8d3bc6b6b9
commit
3546f57a42
@ -21,6 +21,7 @@
|
||||
#include <QComboBox>
|
||||
#include <QTextEdit>
|
||||
#include "FileSystem.h"
|
||||
#include "Markdown.h"
|
||||
#include "minecraft/MinecraftInstance.h"
|
||||
#include "minecraft/mod/ModFolderModel.h"
|
||||
#include "modplatform/helpers/ExportToModList.h"
|
||||
@ -76,11 +77,7 @@ void ExportToModListDialog::formatChanged(int index)
|
||||
case 1: {
|
||||
ui->templateGroup->setDisabled(true);
|
||||
ui->optionsGroup->setDisabled(false);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
|
||||
ui->resultText->show();
|
||||
#else
|
||||
ui->resultText->hide();
|
||||
#endif
|
||||
format = ExportToModList::MARKDOWN;
|
||||
break;
|
||||
}
|
||||
@ -127,9 +124,7 @@ void ExportToModListDialog::triggerImp()
|
||||
}
|
||||
case ExportToModList::MARKDOWN: {
|
||||
exampleLine = "[{name}]({url})[{version}] by {authors}";
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
|
||||
ui->resultText->setMarkdown(txt);
|
||||
#endif
|
||||
ui->resultText->setHtml(markdownToHTML(txt));
|
||||
break;
|
||||
}
|
||||
case ExportToModList::PLAINTXT: {
|
||||
|
Loading…
Reference in New Issue
Block a user