![New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions](https://cdn.sanity.io/images/cgdhsj6q/production/86e6ebdea652d20da070ebbda20134b839972db7-1024x1024.webp?w=800&fit=max&auto=format)
Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
mathlive
Advanced tools
Changelog
0.0.15 2017-07-01
renderMathInDocument()
and
renderMathInElement()
\enclose
command, implementing the
MathML
equivalent.\cancel
, \bcancel
and \xcancel
commandspreserveOriginalContent
option to MathLive.renderMathIn...()
\backslash
work in text mode, for example when an argument of \rlap{}
revertToOriginalContent()
when a math field is no longer needed for an
elementMathField.$setConfig()
and
config.commands
revertToOriginalContent()
and getOriginalContent()
data-
attributesonContentWillChange
and onContentDidChange
handlers in the math
field config object.^
key´
, ^
, ¨
, ˜
and others on some keyboards) were not properly
handled\color
command\rlap
, \color
and many other commands. Now,
copying content using these commands in a math field will result in the
correct LaTeX code to be generated.Readme
MathLive is a Javascript library to render and edit math.
It is fast, small and provides TeX-quality typesetting with an easy to use interface for math editing. Try it at mathlive.io!
![]() |
![]() |
![]() |
You can use MathLive to simply render math equations by adding a few lines to your web page.
<!doctype html><html lang="en-US">
<head>
...
<link rel="stylesheet" href="mathlive.core.css">
<link rel="stylesheet" href="mathlive.css">
</head>
<body>
<h1>Euler's Identity</h1>
<p>$$e^{i\pi} + 1 = 0$$</p>
<script src="mathlive.js"></script>
<script>
MathLive.renderMathInDocument();
</script>
</body>
</html>
You can also incorporate a “math field” to edit math just like you would edit text. The MathLive APIs allow you to interact with the math field, including extracting its content, inserting placeholders and more.
<!DOCTYPE html><html lang="en-US">
<head>
...
<link rel="stylesheet" href="mathlive/mathlive.core.css">
<link rel="stylesheet" href="mathlive/mathlive.css">
</head>
<body>
<div id='mathfield'>
f(x)=
</div>
<script src="mathlive/mathlive.js"></script>
<script>
const mathfield = MathLive.makeMathField('mathfield');
</script>
</body>
</html>
This project is licensed under the MIT License.
FAQs
A web component for math input
The npm package mathlive receives a total of 46,704 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
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.