fix: Prevent global group from adversely affecting color. (#2703)

Co-authored-by: ylemkimon <y@ylem.kim>
This commit is contained in:
Ron Kok
2020-12-29 11:52:41 -08:00
committed by GitHub
parent 157c779f1b
commit cd9ee27ac6
2 changed files with 7 additions and 0 deletions

View File

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