mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-20 08:46:44 +02:00
Fix for classDiagram-v2 support for generics using '~'
This commit is contained in:
@@ -648,7 +648,11 @@ const class_box = (parent, node) => {
|
||||
let classTitleString = node.classData.id;
|
||||
|
||||
if (node.classData.type !== undefined && node.classData.type !== '') {
|
||||
classTitleString += '<' + node.classData.type + '>';
|
||||
if (getConfig().flowchart.htmlLabels) {
|
||||
classTitleString += '<' + node.classData.type + '>';
|
||||
} else {
|
||||
classTitleString += '<' + node.classData.type + '>';
|
||||
}
|
||||
}
|
||||
const classTitleLabel = labelContainer
|
||||
.node()
|
||||
|
Reference in New Issue
Block a user