It would be great if we could support some Latex environment like xymatrix that allows us to draw latex diagrams.
Or possibly an environment like Tikz
KaTeX doesn’t support TikZ or xy-pic. For simple diagrams you can use
array but a better option is to render diagrams using something like quiver and paste in images.