mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
* Improve macro argument parsing
* Make \above a primitive command
* Fix screenshotter data
* Normalize argument where necessary
* Improve argument location info
* Update comments
* Minor refactor
* Modularize group parsers
* Allow braced and blank size argument
for non-strict mode and \genfrac, respectively.
* Minor refactor & update comments
* Remove raw option in parseStringGroup
* Update tests
* Fix { delimited parameter
* Update tests
* Update tests
* Normalize argument in \genfrac
* Update tests
* Consume space before scanning an optional argument
* Fix \\, \newline, and \cr behavior
* Fix flow error
* Update comments
* Remove unnecessary mode switching
Parser mode affects neither fetch nor consume.
* Allow single (active) character macro
* Add function property `primitive`
* Set \mathchoice and \*style primitive
* Separate size-related improvements out to #2139
* Fix flow error
* Update screenshots
* Update demo example
* Add a migration guide
* Fix capitalization
* Make a primitive function unexpandable
* Update screenshots
* Update screenshots
* Revert "Document \def doesn't support delimiters (#2288) (#2289)"
This reverts commit f96fba6f7f
.
* Update comments, errors, and tests
* Update screenshots
965 B
965 B
id, title
id | title |
---|---|
migration | Migration Guide |
As of KaTeX 1.0, we've changed how MacroExpander and Parser work in order to close some gaps between KaTeX and LaTeX and therefore there may be breaking changes.
Macro arguments
Tokens will not be expanded while parsing a macro argument. For example, \frac\foo\foo
,
where the \foo
is defined as 12
, will be parsed as \frac{12}{12}
, not
\frac{1}{2}12
.
\def
\def
no longer accepts a control sequence enclosed in braces. For example,
\def{\foo}{}
no longer works and should be changed to \def\foo{}
.
It also no longer accepts replacement text not enclosed in braces. For example,
\def\foo1
no longer works and should be changed to \def\foo{1}
.
\newline
and \cr
\newline
and \cr
no longer takes an optional size argument. To specify vertical
spacing, \\
should be used.