mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
eaa84d2d91
Both render and parse are async now. Return type of render contains svg and bindFunctions. Parse will not throw error if parseOptions.silent is passed.
456 B
456 B
A collection of updates that change the behavior
Async
init
, parse
, render
are now async.
Lazy loading and asynchronisity
- Invalid dates are rendered as syntax error instead of returning best guess or the current date
ParseError is removed
//< v10.0.0
mermaid.parse(text, parseError);
//>= v10.0.0
await mermaid.parse(text).catch(parseError);
// or
try {
await mermaid.parse(text);
} catch (err) {
parseError(err);
}