mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-27 16:14:16 +01:00
Fixes
GraphObjects.md: [ and ] should be escaped in text (they're links otherwise) flow.jison: fixed a parsing issue when the direction is omitted (defaults to 'TB') stateRenderer-v2: was silently failing due to a try/catch in the parse function. (intentional?) removed to show errorHandler mermaidAPI: removed unnecessary call to updateRendererConfigs since reinitialize does this
This commit is contained in:
@@ -211,11 +211,11 @@ export const draw = function(text, id) {
|
||||
parser.yy = stateDb;
|
||||
|
||||
// Parse the graph definition
|
||||
try {
|
||||
parser.parse(text);
|
||||
} catch (err) {
|
||||
logger.debug('Parsing failed');
|
||||
}
|
||||
// try {
|
||||
parser.parse(text);
|
||||
// } catch (err) {
|
||||
// logger.error('Parsing failed', err);
|
||||
// }
|
||||
|
||||
// Fetch the default direction, use TD if none was found
|
||||
let dir = stateDb.getDirection();
|
||||
|
||||
Reference in New Issue
Block a user