mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 12:59:46 +02:00
#1295 Adding support for multiline descriptions for states
This commit is contained in:
@@ -54,7 +54,12 @@ const setupNode = (g, parent, node, altFlag) => {
|
||||
|
||||
// Description
|
||||
if (node.description) {
|
||||
nodeDb[node.id].description = node.description;
|
||||
if (Array.isArray(node.description)) {
|
||||
nodeDb[node.id].shape = 'rectWithTitle';
|
||||
nodeDb[node.id].description = node.description;
|
||||
} else {
|
||||
nodeDb[node.id].description = node.description;
|
||||
}
|
||||
}
|
||||
|
||||
// Save data for description and group so that for instance a statement without description overwrites
|
||||
|
Reference in New Issue
Block a user