mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-29 09:04:10 +01:00
Fix relatwed to issue number #54 - % in text
This commit is contained in:
@@ -77,8 +77,8 @@ exports.addNote = function (actor, placement, message){
|
||||
};
|
||||
|
||||
|
||||
exports.parseError = function(err, hash) {
|
||||
console.log('Syntax error:' + err);
|
||||
exports.parseError = function(err,hash){
|
||||
mermaid.parseError(err,hash);
|
||||
};
|
||||
|
||||
exports.apply = function(param){
|
||||
|
||||
@@ -246,7 +246,12 @@ module.exports.setConf = function(cnf){
|
||||
module.exports.draw = function (text, id) {
|
||||
sq.yy.clear();
|
||||
//console.log(text);
|
||||
sq.parse(text+'\n');
|
||||
try{
|
||||
sq.parse(text+'\n');
|
||||
}
|
||||
catch(err){
|
||||
|
||||
}
|
||||
exports.bounds.init();
|
||||
var diagram = d3.select('#'+id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user