v0.12.4
版本发布时间: 2020-06-08 07:08:52
michael-brade/LaTeX.js最新发布版本:v0.12.6(2023-04-24 01:57:24)
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 onimport
anymore, it cannot create a cache of html elements directly; nowcreate()
takes a string or a factory function for element creation