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