The syntax for mqty is like \mqty(A&B\\C&D). The issue is that latexdiff incorrectly picks up the \\ as a breakline between math lines so we get something like \DiffADD{\mqty(A&B}\\\DiffADD{C&D)} which breaks compilation.
The correct behavior would be to allow for additional delimiter tokens beyond {} like ()[]<> etc. for a command declared by \declaredocumentcommand{ d<token1><token2> and similar latex3/xparse syntax. It would be excessive for the mqty case to handle individual subitems, so for this situation a mbox or similar protector would be sufficient.
The syntax for
mqty
is like\mqty(A&B\\C&D)
. The issue is that latexdiff incorrectly picks up the\\
as a breakline between math lines so we get something like\DiffADD{\mqty(A&B}\\\DiffADD{C&D)}
which breaks compilation.The correct behavior would be to allow for additional delimiter tokens beyond
{}
like()[]<>
etc. for a command declared by\declaredocumentcommand{ d<token1><token2>
and similar latex3/xparse syntax. It would be excessive for themqty
case to handle individual subitems, so for this situation ambox
or similar protector would be sufficient.