Displayed matrix works:
Non-displayed matrix does not work due to some backslash escaping we do not want touching tex:
Proof that this is the problem:
Displayed matrix works:
Non-displayed matrix works fine in html mode:
Displayed matrix works:
Non-displayed matrix does not work due to some backslash escaping we do not want touching tex:
Proof that this is the problem: