New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mathlive

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathlive - npm Package Versions

1
18

0.89.0

Diff

Changelog

Source

0.89.0 2023-02-12

Improvements

  • #1150 Deleting the empty numerator or denominator of a fraction now behaves more intuitively. The behavior now matches the Desmos graphing calculator.
  • #1806 Support for speaking matrices and other LaTeX environments. Contribution from @androettop. Thanks, Pablo!

Issues Resolved

  • #1802 MathML markup for expressions like a(b)^2 was invalid.
arnog
published 0.87.1 •

Changelog

Source

0.87.1 2023-01-26

Improvements

  • Better MathML serialization of \operatorname{} and \mathrm{}

Issues Resolved

  • #1772 Typing / after f(x) will now consider f(x) as the numerator, instead of (x)
  • #1797 The result type of makeSharedVirtualKeyboard() was incorrectly specified as a private type.
  • #1798 Using a keyboard shortcut with the 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.
  • #1799 Better fix for #1795. Deleting numerator or denominator of a fraction would no longer collapse the fraction.
  • #1800 More closely matches the behavior of the 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.
arnog
published 0.87.0 •

Changelog

Source

0.87.0 2023-01-20

Improvements

  • Removed dependency on jsdom for server-side rendering.
  • Switched bundler from rollup to esbuild

Issues Resolved

  • #1795 Deleting forward when there is nothing to delete was throwing an exception (introduced in 0.86.1)
  • #1763 The "plonk" sound and other accessibility announcements were not dispatched. Also, sounds were not audible the first time they were played.
  • #1762 The \smallint command was erroneously displayed as an extensible symbol
  • The MathML serialization for superscripts and subscripts was invalid in some cases.
arnog
published 0.86.1 •

Changelog

Source

0.86.1 2023-01-18

Issues Resolved

  • #1773, #1542: better handling of interaction with the virtual keyboard on touch-based devices (always use PointerEvents to handle interaction with keycaps)
  • #1035 Removing the last mathfield element from a page could result in math content rendered with renderMathInElement() to no longer be rendered correctly (the necessary stylesheet was erroneously removed).
  • #1791 The "aside" labels in the virtual keyboard were barely visible in dark mode.
  • #1726 Deleting the last element of a fraction also deletes the fraction
  • #1764 The MathML serialization for superscripts and subscripts was invalid.
  • #1790 Annotations from the \enclose command could not be displayed in some cases if the z-index of the expression they decorated had certain values.
arnog
published 0.86.0 •

Changelog

Source

0.86.0 2022-12-02

Breaking Changes

  • The Compute Engine has been split from MathLive to reduce the package size and improve the TTI (Time To Interactive) metric. The Compute Engine now needs to be loaded separately:
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,

Issues Resolved

  • The vertical placement of the superscript after a \left...\right command was incorrect.
  • Extensible arrows with superscript or subscript would not serialize the superscript/subscript.
  • The fraction line and surd line would not be visible when printing with the "Don't show image background" option in the print dialog.
  • The "placeholder-change" event was not dispatched.

Improvements

  • Tweaked the layout of the symbols virtual keyboard to make regular arrows the default, rather than extensible arrows.
  • Fill-in-the-blank (placeholder) nested mathfields now line up with the baseline. They also inherit the font-size of their parent container.
arnog
published 0.85.1 •

Changelog

Source

0.85.1 2022-11-18

  • Updated to Compute Engine 0.11.0
arnog
published 0.85.0 •

Changelog

Source

0.85.0 2022-11-15

New Features

  • Added support for \mathtip{math}{tip} and \texttip{math}{tip} commands. These commands are also supported by MathJax.
  • Added options.enablePopover option which can be set to false to prevent the auto-complete popover from being displayed.
  • Changed the layout of the popover to display multiple options at once
  • Added the \error{} command which displays its content with a red underline.
  • A specific Compute Engine instance can be associated with a mathfield using mf.computeEngine = ce. If none is provided, a default Compute Engine instance is created when necessary. Setting the property to null will prevent the Compute Engine from being used, but the MathJSON format will not be available.

Improvements

  • Audio feedback is now using the Web Audio API. Previously, audio feedback was provided using an Audio element, but browsers have limitations to the number of Audio elements which can be instantiated in a page at a time, and this limit is reached surprisingly quickly wiht multiple mathfields on a page.
  • The window.mathlive global is now globalThis[Symbol.for("mathlive")]. This is mostly used internally for coordination between mathfields in the same context but it also includes the version property which may be of use for debugging or to report issues.

Issues Resolved

  • #1715, #1716: fill-in-the-blank placeholders inside a <math-field> did not inherit the options from their parent container.
arnog
published 0.84.0 •

Changelog

Source

0.84.0 2022-10-19

New Features

  • When using renderMathInElement or renderMathInDocument to render math content, the math content can now be provided as MathJSON in addition to LaTeX by using a <script> tag with a type of math/json.
<script type="math/json">
  ["Cos", ["Divide", "Pi", 7]]
</script>

Improvements

  • The MathfieldElement now has a setter for expression, which allows to set the value of a mathfield to a MathJSON expression.

Issues Resolved

  • #1669 Don't attempt to get the local URL base when using absolute URLs. Allow null as a value for fontsDirectory and soundDirectory to prevent any attempt to resolve these values.
arnog
published 0.83.0 •

Changelog

Source

0.83.0 2022-10-02

Improvements

  • When navigating with the keyboard from a numerator to a denominator (or any above/below branch), determine the new position of the caret visually, rather than by its index in the subexpression. Contributed by @manstie

  • Commands and key bindings to manipulate array/matrix:

    | Key Binding | Command | | :--------------------------------------------------------------------- | :---------------- | | <kbd>ctrl/⌘</kbd>+<kbd>;</kbd><br/><kbd>ctrl/⌘</kbd>+<kbd>RETURN</kbd> | addRowAfter | | <kbd>ctrl/⌘</kbd>+<kbd>shift</kbd>+<kbd>;</kbd> | addRowBefore | | <kbd>ctrl/⌘</kbd>+<kbd>,</kbd> | addColumnAfter | | <kbd>ctrl/⌘</kbd>+<kbd>shift</kbd>+<kbd>,</kbd> | addColumnBefore | | <kbd>ctrl/⌘</kbd>+<kbd>BACKSPACE</kbd> | removeRow | | <kbd>shift</kbd>+<kbd>BACKSPACE</kbd> | removeColumn |

    Contributed by @manstie

  • Updated to Compute Engine 0.8

Issues Resolved

  • The caret after an environment without fences (e.g. matrix, aligned, etc) would not be displayed.
arnog
published 0.82.0 •

Changelog

Source

0.82.0 2022-09-30

Improvements

  • Update Compute Engine to 0.7.0
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc