Gathering detailed insights and metrics for @traptitech/markdown-it-katex
Gathering detailed insights and metrics for @traptitech/markdown-it-katex
Gathering detailed insights and metrics for @traptitech/markdown-it-katex
Gathering detailed insights and metrics for @traptitech/markdown-it-katex
Add Math to your Markdown with a KaTeX plugin for Markdown-it
npm install @traptitech/markdown-it-katex
Typescript
Module System
Node Version
NPM Version
87.2
Supply Chain
85.4
Quality
79.6
Maintenance
100
Vulnerability
99.6
License
JavaScript (88.13%)
HTML (11.87%)
Total Downloads
747,108
Last Day
309
Last Week
5,461
Last Month
23,418
Last Year
258,846
NOASSERTION License
23 Stars
249 Commits
3 Forks
2 Watchers
4 Branches
117 Contributors
Updated on Jun 09, 2025
Minified
Minified + Gzipped
Latest Version
3.6.0
Package Id
@traptitech/markdown-it-katex@3.6.0
Unpacked Size
20.34 kB
Size
7.20 kB
File Count
19
NPM Version
8.11.0
Node Version
16.15.1
Cumulative downloads
Total Downloads
Last Day
18.4%
309
Compared to previous day
Last Week
-9.8%
5,461
Compared to previous week
Last Month
2.1%
23,418
Compared to previous month
Last Year
18.5%
258,846
Compared to previous year
1
5
Add KaTeX rendering to your Markdown
1$ npm install @traptitech/markdown-it-katex
Including KaTeX CSS is needed.
katex
: You can change KaTeX version by passing the instance.blockClass
: Class added to KaTeX block.1md.use(mk, {"blockClass": "math-block", "errorColor" : " #cc0000"});
Surround your LaTeX with a single $
on each side for inline rendering.
$\sqrt{3x-1}+(1+x)^2$
Use two ($$
) for block rendering. This mode uses bigger symbols and centers
the result.
$$\begin{array}{c}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &
= \frac{4\pi}{c}\vec{\mathbf{j}} \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0
\end{array}$$
Math parsing in markdown is designed to agree with the conventions set by pandoc:
Anything between two $ characters will be treated as TeX math. The opening $ must
have a non-space character immediately to its right, while the closing $ must
have a non-space character immediately to its left, and must not be followed
immediately by a digit. Thus, $20,000 and $30,000 won’t parse as math. If for some
reason you need to enclose text in literal $ characters, backslash-escape them and
they won’t be treated as math delimiters.
KaTeX is based on TeX and LaTeX. Support for both is growing. Here's a list of currently supported functions:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
5 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More