# @bytemd/plugin-math

> ByteMD plugin to support math formula

Latest version **1.22.0** (published 2025-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bytemd/plugin-math
pnpm add @bytemd/plugin-math
yarn add @bytemd/plugin-math
bun add @bytemd/plugin-math
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.22.0 |
| Published | 2025-02-12 |
| First published | 2020-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 314.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1377 |
| Author | Rongjian Zhang |
| Maintainers | pd4d10 |

## Links

- npm: https://www.npmjs.com/package/@bytemd/plugin-math
- Repository: https://github.com/bytedance/bytemd
- Homepage: https://github.com/bytedance/bytemd#readme
- Issues: https://github.com/bytedance/bytemd/issues
- npm.io page: https://npm.io/package/@bytemd/plugin-math

## Dependencies (3)

- [katex](https://npm.io/package/katex.md) ^0.16.4
- [remark-math](https://npm.io/package/remark-math.md) ^5.1.1
- [@types/katex](https://npm.io/package/@types/katex.md) ^0.16.0

## Recent versions

- 1.22.0 (latest) — 2025-02-12
- 1.21.0 — 2023-03-30
- 1.20.2 — 2023-01-29
- 1.20.1 — 2023-01-29
- 1.20.0 — 2023-01-04
- 1.19.0 — 2023-01-03
- 1.18.0 — 2022-12-21
- 1.17.4 — 2022-10-14
- 1.17.3 — 2022-10-13
- 1.17.2 — 2022-07-21
- 1.17.1 — 2022-07-08
- 1.17.0 — 2022-07-06
- 1.16.0 — 2022-06-29
- 1.15.0 — 2022-05-17
- 1.14.0 — 2022-05-09
- … 35 more at https://npm.io/package/@bytemd/plugin-math/versions

## README

# @bytemd/plugin-math

[![npm](https://img.shields.io/npm/v/@bytemd/plugin-math.svg)](https://npm.im/@bytemd/plugin-math)

ByteMD plugin to support math formula

## Usage

```js
import math from '@bytemd/plugin-math'
import { Editor } from 'bytemd'
import 'katex/dist/katex.css'

new Editor({
  target: document.body,
  props: {
    plugins: [
      math(),
      // ... other plugins
    ],
  },
})
```

## License

MIT

---
_Source: https://npm.io/package/@bytemd/plugin-math · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
