mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +02:00
#1295 Adding support for multiline descriptions for states
This commit is contained in:
@@ -132,6 +132,7 @@ export const addState = function(id, type, doc, descr, note) {
|
||||
}
|
||||
}
|
||||
if (descr) {
|
||||
logger.info('Adding state ', id, descr);
|
||||
if (typeof descr === 'string') addDescription(id, descr.trim());
|
||||
|
||||
if (typeof descr === 'object') {
|
||||
|
Reference in New Issue
Block a user