MCPcopy Create free account
hub / github.com/cloose/CuteMarkEd / markdownTextChanged

Method markdownTextChanged

app/htmlpreviewgenerator.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void HtmlPreviewGenerator::markdownTextChanged(const QString &text)
51{
52 // cut YAML header
53 YamlHeaderChecker checker(text);
54 QString actualText = checker.hasHeader() && options->isYamlHeaderSupportEnabled() ?
55 checker.body()
56 : text;
57 // enqueue task to parse the markdown text and generate a new HTML document
58 QMutexLocker locker(&tasksMutex);
59 tasks.enqueue(actualText);
60 bufferNotEmpty.wakeOne();
61}
62
63QString HtmlPreviewGenerator::exportHtml(const QString &styleSheet, const QString &highlightingScript)
64{

Callers 2

~MainWindowMethod · 0.80
plainTextChangedMethod · 0.80

Calls 4

hasHeaderMethod · 0.80
bodyMethod · 0.80
enqueueMethod · 0.80

Tested by

no test coverage detected