15 markdownToHtml(
const std::string& markdownText,
size_t spacesPerTab = 2)
18 document.read(markdownText);
20 std::stringstream html;
27 QGridLayout* layout =
new QGridLayout;
35 layout->addWidget(
new QLabel(
"Name:"), row, col++);
37 layout->addWidget(name, row, col++);
40 layout->addWidget(
new QLabel(), row, col++);
43 QLabel* label =
new QLabel(
"Timeout:");
44 label->setAlignment(Qt::AlignmentFlag::AlignRight);
45 layout->addWidget(label, row, col++);
48 timeout->setAlignment(Qt::AlignmentFlag::AlignRight);
49 layout->addWidget(timeout, row, col++);
55 description =
new QTextEdit;
56 description->setReadOnly(
true);
57 layout->addWidget(description, row, col, 1, numCols);
65 description->setHtml(QString::fromStdString(markdownToHtml(desc.
description)));