pressbooks/pressbooks — pull request #48 by bdolor (2014-02-25 06:45:51+00:00)
Title: epub support for WP image rendering service for latex equations

Getting math equations to render in an epub output requires converting LaTeX markup to an image, and of course, including that image in the epub package. WordPress provides an image rendering service (http://s.wordpress.com/latex.php) that will convert your LaTeX equation to an image, but its URL does not conform to the pattern required in `fetchAndSaveUniqueImage()`. The lack of file extension (.png) in the url triggers an epubcheck error `remote resource reference not allowed` and appends a #fixme to the source URL. Below is an example of passing a latex equation to the WP service:

``

This PR targets only the WP latex service as many LaTeX plugins currently use it, and for all intents and purposes could be thought of as a trustworthy domain.