MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / markdownToHTML

Function markdownToHTML

launcher/Markdown.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include "Markdown.h"
20
21QString markdownToHTML(const QString& markdown)
22{
23 const QByteArray markdownData = markdown.toUtf8();
24 char* buffer = cmark_markdown_to_html(markdownData.constData(), markdownData.length(), CMARK_OPT_NOBREAKS | CMARK_OPT_UNSAFE);
25
26 QString htmlStr(buffer);
27
28 free(buffer);
29
30 return htmlStr;
31}

Callers 9

selectionChangedMethod · 0.85
updateUiMethod · 0.85
onSelectionChangedMethod · 0.85
updateUIMethod · 0.85
suggestVersionMethod · 0.85
UpdateAvailableDialogMethod · 0.85
triggerImpMethod · 0.85
getLicenseHtmlFunction · 0.85
appendResourceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected