MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / reprocessMarkdown

Function reprocessMarkdown

launcher/ui/dialogs/UpdateDialog.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90QString reprocessMarkdown(QByteArray markdown)
91{
92 HoeDown hoedown;
93 QString output = hoedown.process(markdown);
94
95 // HACK: easier than customizing hoedown
96 output.replace(QRegularExpression("GH-([0-9]+)"), "<a href=\"https://github.com/PolyMC/PolyMC/issues/\\1\">GH-\\1</a>");
97 qDebug() << output;
98 return output;
99}
100
101QString reprocessCommits(QByteArray json)
102{

Callers 1

changelogLoadedMethod · 0.85

Calls 2

processMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected