aboutsummaryrefslogtreecommitdiff
path: root/launcher/Markdown.h
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-06-25 13:42:45 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-06-25 13:43:03 +0100
commit02b628653b4d2574766e1148ebd71b426b52a5d2 (patch)
treeb919a21c87334a08eea57122633aea02d679b6b7 /launcher/Markdown.h
parentc75ba0f8551e911b72152ebdd8b2fe1f8bd8f64f (diff)
downloadPrismLauncher-02b628653b4d2574766e1148ebd71b426b52a5d2.tar.gz
PrismLauncher-02b628653b4d2574766e1148ebd71b426b52a5d2.tar.bz2
PrismLauncher-02b628653b4d2574766e1148ebd71b426b52a5d2.zip
Fix markdown header
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/Markdown.h')
-rw-r--r--launcher/Markdown.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/launcher/Markdown.h b/launcher/Markdown.h
index f115dd57..6b261e60 100644
--- a/launcher/Markdown.h
+++ b/launcher/Markdown.h
@@ -21,14 +21,4 @@
#include <QString>
#include <cmark.h>
-static QString markdownToHTML(const QString& markdown)
-{
- const QByteArray markdownData = markdown.toUtf8();
- char* buffer = cmark_markdown_to_html(markdownData.constData(), markdownData.length(), CMARK_OPT_NOBREAKS | CMARK_OPT_UNSAFE);
-
- QString htmlStr(buffer);
-
- free(buffer);
-
- return htmlStr;
-} \ No newline at end of file
+QString markdownToHTML(const QString& markdown); \ No newline at end of file