mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-17 19:24:10 +01:00
Simple rendering of class diagrams
This commit is contained in:
@@ -42,6 +42,11 @@ var detectType = function(text){
|
||||
return 'gantt';
|
||||
}
|
||||
|
||||
if(text.match(/^\s*classDiagram/)) {
|
||||
log.debug('Detected classDiagram syntax');
|
||||
return 'classDiagram';
|
||||
}
|
||||
|
||||
return 'graph';
|
||||
};
|
||||
export {detectType};
|
||||
|
||||
Reference in New Issue
Block a user