mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-17 11:14:12 +01:00
@@ -18,10 +18,15 @@ module.exports.detectType = function(text,a){
|
||||
}
|
||||
|
||||
if(text.match(/^\s*digraph/)) {
|
||||
console.log('Detected flow syntax');
|
||||
console.log('Detected dot syntax');
|
||||
return "dotGraph";
|
||||
}
|
||||
|
||||
if(text.match(/^\s*info/)) {
|
||||
//console.log('Detected info syntax');
|
||||
return "info";
|
||||
}
|
||||
|
||||
return "graph";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user