Merge pull request #3038 from pinghe/develop

Add C4 Diagram. Compatible with C4-PlantUML syntax.
This commit is contained in:
Knut Sveidqvist
2022-06-07 17:12:10 +02:00
committed by GitHub
18 changed files with 2979 additions and 0 deletions

View File

@@ -185,6 +185,10 @@ export const detectDirective = function (text, type = null) {
*/
export const detectType = function (text, cnf) {
text = text.replace(directive, '').replace(anyComment, '\n');
if (text.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/)) {
return 'c4';
}
if (text.match(/^\s*sequenceDiagram/)) {
return 'sequence';
}