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 <QComboBox>
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
#include "FileSystem.h"
|
#include "FileSystem.h"
|
||||||
|
#include "Markdown.h"
|
||||||
#include "minecraft/MinecraftInstance.h"
|
#include "minecraft/MinecraftInstance.h"
|
||||||
#include "minecraft/mod/ModFolderModel.h"
|
#include "minecraft/mod/ModFolderModel.h"
|
||||||
#include "modplatform/helpers/ExportToModList.h"
|
#include "modplatform/helpers/ExportToModList.h"
|
||||||
@ -76,11 +77,7 @@ void ExportToModListDialog::formatChanged(int index)
|
|||||||
case 1: {
|
case 1: {
|
||||||
ui->templateGroup->setDisabled(true);
|
ui->templateGroup->setDisabled(true);
|
||||||
ui->optionsGroup->setDisabled(false);
|
ui->optionsGroup->setDisabled(false);
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
|
|
||||||
ui->resultText->show();
|
ui->resultText->show();
|
||||||
#else
|
|
||||||
ui->resultText->hide();
|
|
||||||
#endif
|
|
||||||
format = ExportToModList::MARKDOWN;
|
format = ExportToModList::MARKDOWN;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -127,9 +124,7 @@ void ExportToModListDialog::triggerImp()
|
|||||||
}
|
}
|
||||||
case ExportToModList::MARKDOWN: {
|
case ExportToModList::MARKDOWN: {
|
||||||
exampleLine = "[{name}]({url})[{version}] by {authors}";
|
exampleLine = "[{name}]({url})[{version}] by {authors}";
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
|
ui->resultText->setHtml(markdownToHTML(txt));
|
||||||
ui->resultText->setMarkdown(txt);
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ExportToModList::PLAINTXT: {
|
case ExportToModList::PLAINTXT: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user