WIP-hook up a renderer

This commit is contained in:
Raghu Rajagopalan
2016-03-29 08:33:38 +05:30
parent 44dc30c02c
commit e17b35a96a
4 changed files with 80 additions and 18 deletions

View File

@@ -47,6 +47,10 @@ var detectType = function(text){
return 'classDiagram';
}
if(text.match(/^\s*gitGraph/)) {
log.debug('Detected gitGraph syntax');
return 'gitGraph';
}
return 'graph';
};
exports.detectType= detectType;
@@ -85,7 +89,7 @@ var cloneCssStyles = function(svg, classes){
log.warn('Invalid CSS selector "' + rule.selectorText + '"', err);
}
}
}
}
}
var defaultStyles = '';