
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Math term is your web component that helps you to write mathematical equations in the browser.
Write mathematical expressions in your web page.
Suported Versions:
A custom element to render mathematical expressions in a web page using KaTeX. Write in LaTeX and enjoy!
To install the component, run the following command in your project directory:
npm i math-term
If your are creating a project with a bundler like Webpack, Rollup, or Parcel, you can import the component in your JavaScript/TypeScript file:
import "math-term";
You can also use a CDN to include the component in your project. Add the following script tag to your HTML file:
<script type="module" src="https://cdn.jsdelivr.net/npm/math-term/dist/math-term.js" lang="javascript"></script>
or
<script type="module" src="https://unpkg.com/math-term/dist/math-term.js" lang="javascript"></script>
In the body of the HTML file, add the math-term component and provide the mathematical expression. For example:
<math-term>f(x) = \frac{1}{x}</math-term>
🚧 Caution: When the LaTeX syntax is incorrect, the expression will be rendered as plain text in red. Make sure to write valid LaTeX expressions.
<!DOCTYPE html>
<html>
<head>
<title>Math component</title>
<script type="module" src="https://cdn.jsdelivr.net/npm/math-term/dist/math-term.js"></script>
</head>
<body>
<math-term>f(x) = \frac{1}{x}</math-term>
</body>
</html>
| Attribute | Type | Description |
|---|---|---|
displayBlockMode | boolean | If true, renders the math expression in block mode instead of inline mode. |
Contributions are welcome! If you have suggestions for improvements or find bugs, please open an issue or submit a pull request.
|
TypeScript |
KaTeX |
Web components |
Released under the MIT License by @MetalbolicX
FAQs
Math term is your web component that helps you to write mathematical equations in the browser.
We found that math-term 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.