What's to patch? This is already a configuration variable, just set it...
-- brion vibber (brion @ wikimedia.org)
On Mar 18, 2009, at 21:24, Andrew Garrett agarrett@wikimedia.org wrote:
2009/3/19 lee worden wonder@riseup.net:
I'm at work on a MW extension that, among other things, uses LaTeXML [1] to make XHTML from full LaTeX documents. One feature is the option to render the equations in MathML, which requires the skins to be patched so that they output the page as Content-type: application/xhtml+xml instead of text/html.
Attached is a patch for the skins directory that allows changing the Content-type dynamically. After applying this patch, if any code sets the global $wgServeAsXHTML to true, the page will be output with the xhtml+xml content type. This seems to work fine with the existing MW XHTML pages.
It should be done with the Parser Output instead.
This mailing list does not accept attachments
-- Andrew Garrett
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l