Add support for classifiers in text attribute

This commit is contained in:
yari-dewalt
2024-08-28 12:24:42 -07:00
parent 9ac20a5cb8
commit bd4ca9af1b

View File

@@ -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() {