mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-13 11:09:39 +02:00
Add support for classifiers in text attribute
This commit is contained in:
@@ -161,6 +161,12 @@ export class ClassMember {
|
|||||||
this.text = this.text.replace('~', '\\~');
|
this.text = this.text.replace('~', '\\~');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.classifier === '$') {
|
||||||
|
this.text = `<u>${this.text}</u>`;
|
||||||
|
} else if (this.classifier === '*') {
|
||||||
|
this.text = `<i>${this.text}</i>`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parseClassifier() {
|
parseClassifier() {
|
||||||
|
Reference in New Issue
Block a user