mathlive
Advanced tools
Changelog
0.89.4 2023-02-27
Changelog
0.89.3 2023-02-27
<textarea>
, the keyboard events are now captured by
a content editable <span>
.inputType
property as the data
property of "input"
and "beforeinput"
events.
WebKit/Safari erroneously strip the inputType
property.Changelog
0.89.2 2023-02-17
/dist
directory with a .mjs
extension are packaged as modules and can be
used with a JavaScript import
statement or a <script type=module>
tag..js
extension are packaged to be used with a regular
<script>
tag (no type=module
). This format is called IIFE and declares a
MathLive
global variable from which the MathLive API can be accessed.require()
API. This was implemented in Node, but
also supported by some toolchains, such as WebPack. Unfortunately, some of
those older toolchains are still in use and difficult to move away from. In
order to support require()
the library needs to be packaged using the UMD
format. The UMD format is not supported by modern bundling tools, such as
esbuild
, which is what MathLive uses since 0.87.0. In this release, the
support for UMD is re-introduced by implementing it manually in MathLive,
rather than relying on the bundler.Changelog
0.89.0 2023-02-12
a(b)^2
was invalid.Changelog
0.87.1 2023-01-26
\operatorname{}
and \mathrm{}
/
after f(x)
will now consider f(x)
as the numerator,
instead of (x)
makeSharedVirtualKeyboard()
was incorrectly
specified as a private type.control
or command
key would
not reset the inline keystroke buffer. As a result, typing s
+ i
+
ctrl
-6
+ n
would yield \sin
instead of \si^n
.textarea
element. Only
dispatch an "input"
event with an inputType
of "insertLineBreak"
when
the user pressed the RETURN or ENTER key. Also dispatch a focusin
and focusout
event when applicable.Changelog
0.87.0 2023-01-20
jsdom
for server-side rendering.rollup
to esbuild
\smallint
command was erroneously displayed as an extensible
symbolChangelog
0.86.1 2023-01-18
renderMathInElement()
to no longer be rendered
correctly (the necessary stylesheet was erroneously removed).\enclose
command could not be displayed in
some cases if the z-index
of the expression they decorated had certain
values.Changelog
0.86.0 2022-12-02
import 'https://unpkg.com/@cortex-js/compute-engine@latest/dist/compute-engine.min.esm.js';
or
import { ComputeEngine } from 'https://unpkg.com/@cortex-js/compute-engine@latest/dist/compute-engine.min.esm.js';
to create custom Compute Engine instances, which can then be associated with a
mathfield using mf.setOptions({computeEngine: ce})
or mf.computeEngine = ce
.
If the Compute Engine library is not loaded, some functionality of the mathfield
will not be available: mf.expression
will always return null
and cannot be
used to change the content of the mathfield, and math-json
is not available as
a format on the clipboard,
\left...\right
command was
incorrect."placeholder-change"
event was not dispatched.