'Matrix with annotation braces in MathJax

I try to do in MathJax something like the braces in https://tex.stackexchange.com/questions/374985/matrix-brace-extend , but I always stumble on differences between pure LaTeX and MathJax. How can I do achive this result with MathJaX? Or should I use something else like KaTeX? Thanks a lot.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source