feat: implement \relax as no-op function (#3384)

* feat: implement \relax as no-op function

BREAKING CHANGE: `\relax` is now implemented as a function. It'll stop
expansions and parsing, so the behavior around `\relax` may change.
For example, `\kern2\relax em` will no longer work.
This commit is contained in:
ylemkimon
2021-10-31 12:46:43 +09:00
committed by GitHub
parent a12b89968c
commit 40109f6248
6 changed files with 34 additions and 8 deletions

View File

@@ -4046,3 +4046,9 @@ describe("debugging macros", () => {
});
});
});
describe("\\relax", () => {
it("should stop the expansion", () => {
expect`\kern2\relax em`.not.toParse();
});
});