mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix for classDiagram-v2 support for generics using '~'
This commit is contained in:
parent
d09dea7e5e
commit
46a3d10e8a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user