Fixed mathjax and source code processing. Simplified table processing