pngmath depth info lost on updates.

Michael Forbes avatarMichael Forbes created an issue

When regenerating pages with inline math, but without changing the math, the cached images are used but without "depth" information.

The problem is lines 81-82 of

if path.isfile(outfn): return relfn, self.builder.env._pngmath_depth.get(shasum, None)

Unless the images have been freshly generated, there is no depth information in self.builder.env._pngmath_depth['shasum']. This information should probably be stored in the _images directory somehow along with the image so it can be used for rebuilding the page with proper baseline offset.

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.