Fix for classDiagram-v2 support for generics using '~'

This commit is contained in:
Ashish Jain 2021-08-19 17:51:22 +02:00
parent d09dea7e5e
commit 46a3d10e8a

View File

@ -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 += '&lt;' + node.classData.type + '&gt;';
} else {
classTitleString += '<' + node.classData.type + '>';
}
}
const classTitleLabel = labelContainer
.node()