Add KaTeX for math rendering
Update build script