mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
fix: Prevent global group from adversely affecting color. (#2703)
Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
@@ -869,6 +869,7 @@ describe("A color parser", function() {
|
||||
const macros = {};
|
||||
expect(oldColorExpression).toParseLike(r`\textcolor{#fA6}{x}y`, {
|
||||
colorIsTextColor: true,
|
||||
globalGroup: true,
|
||||
macros: macros,
|
||||
});
|
||||
expect(macros).toEqual({});
|
||||
|
Reference in New Issue
Block a user