| 85 | } |
| 86 | |
| 87 | bool CodeHandler::hasCodeBlocks(const QString &text) |
| 88 | { |
| 89 | QStringList lines = text.split('\n'); |
| 90 | |
| 91 | for (const QString &line : lines) { |
| 92 | if (line.trimmed().startsWith("```")) { |
| 93 | return true; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | return false; |
| 98 | } |
| 99 | |
| 100 | static QHash<QString, QString> buildLanguageToCommentPrefixMap() |
| 101 | { |
nothing calls this directly
no outgoing calls
no test coverage detected