add KaTeX and sort the code