Skip to content

Commit 74df965

Browse files
committed
Make sure correct class is used for stretchy character CSS when the stretchy character is aliased.
1 parent bbafaf1 commit 74df965

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ts/output/chtml/FontData.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,9 @@ export class CHTMLFontData extends FontData<CHTMLCharOptions, CHTMLVariantData,
230230
* @param {CHTMLDelimiterData} data The data for the delimiter whose CSS is to be added
231231
*/
232232
protected addDelimiterStyles(styles: StyleList, n: number, data: CHTMLDelimiterData) {
233-
const c = this.charSelector(n);
233+
let c = this.charSelector(n);
234234
if (data.c && data.c !== n) {
235+
c = this.charSelector(data.c);
235236
styles['.mjx-stretched mjx-c' + c + '::before'] = {
236237
content: this.charContent(data.c)
237238
};

0 commit comments

Comments
 (0)