mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-12 10:39:44 +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('~', '\\~');
|
||||
}
|
||||
}
|
||||
|
||||
if (this.classifier === '$') {
|
||||
this.text = `<u>${this.text}</u>`;
|
||||
} else if (this.classifier === '*') {
|
||||
this.text = `<i>${this.text}</i>`;
|
||||
}
|
||||
}
|
||||
|
||||
parseClassifier() {
|
||||
|
Reference in New Issue
Block a user