From f0cd46ad6606be6e0b6769a5f3caf57d17f24314 Mon Sep 17 00:00:00 2001 From: Arno Gourdol Date: Fri, 25 Oct 2024 02:23:10 -0700 Subject: [PATCH] fix: fixed typo in parser --- src/core/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/parser.ts b/src/core/parser.ts index 67e065ac8..801c145ab 100644 --- a/src/core/parser.ts +++ b/src/core/parser.ts @@ -793,7 +793,7 @@ export class Parser { this.beginContext({ mode: 'math', - mathstyle: '<$>' ? 'textstyle' : 'displaystyle', + mathstyle: final === '<$>' ? 'textstyle' : 'displaystyle', }); const result = this.scan((token) => token === final);