mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
Previously, the matrix family of environments assumed that the number of columns was given by the number of columns in the first row. This didn't work when there were zero rows, and it didn't handle the case where future rows have more columns than the first (which is visible when using an alignment other than `c`, such as `\begin{matrix*}[r]`). Fixes #3017 Co-authored-by: ylemkimon <y@ylem.kim>