Switch from KaTeX to imgmath for documentation rendering.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23025
Test Plan: Imported from OSS
Differential Revision: D16441000
Pulled By: ezyang
fbshipit-source-id: c1ab557cb8163e9c69585c32d237c076582a6d73