jgm/gitit — pull request #398 by wjv (2014-01-23 16:50:17+00:00)
Title: Document added mod_proxy_html setting in README

This is a minor/trivial documentation update, which adds a ProxyHTMLDocType directive for Apache's mod_proxy_html, in the case where the user is using Apache to proxy to e.g. "http://mysite.com/wiki".

This directive instructs mod_proxy_html to re-add the DOCTYPE string which it would otherwise strip. Without the DOCTYPE string, there are a number of subtle differences in rendered pages. Most notably, highlighted source code with page numbers are misaligned. (Tested under both Safari and Chrome.)

The new form of the ProxyHTMLDocType directive (which includes the entire DOCTYPE string) needs to be used, otherwise mod_proxy_html "sanitises" the HTML, which results in MathML-rendered formulae being broken.