Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
mathlive
Advanced tools
Changelog
0.98.6 2024-01-27
StaticRenderOptions.TeX.className
to specify that an element with the
specified class name should be rendered as a LaTeX formula.--keycap-width
CSS variable to specify the width of a
keycap in a virtual-keyboard. By default, if the CSS variable is not
specified, the width of the keycap is calculated based on the width of the
parent container. However, this requires browser that support the cq
CSS
unit. If the browser does not support the cq
CSS unit, this CSS variable can
be used to specify the width of the keycap. (See #2028, #2133)gather*
environmentrenderToMarkup()
or renderToMathML()
in a
server-side environment, a runtime error would occur.²
or ℂ
are now
interpreted as their LaTeX equivalent only when in math mode.\iff
now renders correctlymf.value
property would not always update the value
of the mathfield.renderMathToElement()
or renderMathInDocument()
, coalesce
adjacent text nodes.\cfrac
optional alignment argument\bf
, \bfseries
, \mdseries
, \upshape
, \itshape
,
\slshape
, \scshape
, \rmfamily
, \sffamily
, \ttfamily
are now
interpreted correctly.\operatorname
is now spoken correctlyReadme
MathLive is a powerful web component that provides an easy-to-use interface for editing math formulas.
With over 800 built-in LaTeX commands, MathLive renders beautiful, TeX-quality typesetting.
It's designed for mobile devices with an extensive set of virtual keyboards for math input, and is compatible with screen readers, including custom math-to-speech support for improved accessibility.
MathLive outputs to LaTeX, MathML, ASCIIMath, and MathJSON formats, making it incredibly versatile.
And the best part? It's easy to customize to your needs!
Using MathLive is easy! Simply add a <math-field>
tag to your page. It
initializes automatically and works just like a <textarea>
or <button>
element. You can manipulate the mathfield using methods of the element and
listen for events to be notified when its internal state changes.
npm install mathlive
import 'mathlive';
<!DOCTYPE html>
<html lang="en-US">
<body>
<math-field>f(x)=</math-field>
</body>
</html>
You can also add it using CDN
<head>
<script src="https://unpkg.com/mathlive"></script>
</head>
Check documentation for React and interaction with Mathfield.
MathLive has an extensive set of documentation to help you get started, including guides on interacting with a mathfield, customizing it, executing commands, defining custom LaTeX macros, managing inline and keyboard shortcuts, controlling speech output, and displaying static math formulas. You can find all of these guides on the CortexJS.io website.
In addition to the guides, you can also find reference documentation of the MathLive API on the MathLive SDK page.
This project is licensed under the MIT License.
FAQs
A web component for math input
The npm package mathlive receives a total of 40,989 weekly downloads. As such, mathlive popularity was classified as popular.
We found that mathlive demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.