Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@comark/plugin-katex

Latest version: v0.0.1

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: atinux, farnabaz
1,116 Stars
63 Forks
2 Versions
TypeScript Repo language

Scan summary

@comark/plugin-katex was last scanned on 1 Dec 2026 at version 0.0.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 1 Dec 2026.
  • Findings: No rules fired in version 0.0.1.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.1 LATEST 1 Dec 2026 No rules fired
0.0.0-stage 1 Dec 2026 Not shown

No rules fired in 0.0.1

Findings

Findings for v0.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@comark/plugin-katex

npm version npm downloads CI Documentation license

KaTeX plugin for Comark. Parses inline $...$ and display $$...$$ expressions and renders them with KaTeX, in HTML, terminal, Vue, React, Svelte and Angular.

Features

  • katex ships as a dependency, so there is nothing else to install
  • Inline and display math, plus optional \(...\) and \[...\] delimiters for LLM output
  • Auto-closes incomplete math while streaming
  • Math components for Vue, React, Svelte, Angular, HTML and ANSI
  • KaTeX loads on first use, so pages without math never load it
  • Full TypeScript support

Installation

npm install @comark/plugin-katex
# or
pnpm add @comark/plugin-katex

Usage

import { parseMarkdown } from 'comark'
import math from '@comark/plugin-katex'

const result = await parseMarkdown('Inline $x^2$ and display $$E = mc^2$$', {
  plugins: [math()],
})

The plugin stores the LaTeX source as plain text. Rendering needs a Math component and the KaTeX stylesheet:

import '@comark/plugin-katex/katex.css'
<script setup lang="ts">
import { Markdown } from '@comark/vue'
import math from '@comark/plugin-katex'
import { Math } from '@comark/plugin-katex/vue'
</script>

<template>
  <Markdown :plugins="[math()]" :components="{ math: Math }">{{ content }}</Markdown>
</template>
import { Markdown } from '@comark/react'
import math from '@comark/plugin-katex'
import { Math } from '@comark/plugin-katex/react'

<Markdown plugins={[math()]} components={{ math: Math }}>{content}</Markdown>
<script lang="ts">
  import { Markdown } from '@comark/svelte'
  import math from '@comark/plugin-katex'
  import { Math } from '@comark/plugin-katex/svelte'
</script>

<Markdown {content} plugins={[math()]} components={{ math: Math }} />

Each component entry exports only its component, so the plugin always comes from the package root. The Angular adapter (@comark/plugin-katex/angular) and the HTML and ANSI render functions (@comark/plugin-katex/html, @comark/plugin-katex/ansi) follow the same rule.

API

  • math(options?) returns the plugin. Options: brackets (also parse \(...\) and \[...\]), options (KaTeX render options).
  • loadKatex() loads KaTeX on demand; getKatex() returns it once loaded; typesetMath(tex, displayMode) renders to HTML.
  • Math components are exported from ./vue, ./react, ./svelte, ./angular, ./html and ./ansi.

Documentation

Full guide and API reference at comark.dev/plugins/official/katex.

License

Made with ❤️

Published under MIT License.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @comark/plugin-katex

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229