Download Latest Version v0.12.6_ bugfixes source code.zip (9.3 MB)
Email in envelope

Get an email when there's a new version of LaTeX.js

Home / v0.12.4
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2020-06-07 745 Bytes
v0.12.4_ infrastructure, for real source code.tar.gz 2020-06-07 8.0 MB
v0.12.4_ infrastructure, for real source code.zip 2020-06-07 8.1 MB
Totals: 3 Items   16.1 MB 0

I had to fix it again. Verdict: ES6 modules and automatic detection of node/browser environment doesn't work.

So now LaTeX.js (HtmlGenerator to be exact) simply assumes a DOM implementation, HtmlGenerator doesn't load svgdom itself anymore. Without support for top-level await in browsers, terser, and node, this just cannot be done properly in ES6.

Other changes:

  • include LaTeXJSComponent in the main exports, don't create an extra bundle anymore
  • include SyntaxError in the main exports
  • to make sure that HtmlGenerator doesn't require a DOM implementation already on import anymore, it cannot create a cache of html elements directly; now create() takes a string or a factory function for element creation
Source: README.md, updated 2020-06-07