CH4ACKO3/dsh-render-engine--packages-math-render ↗★ 1

@ch4acko3/dsh-math-render

KaTeX MathML rendering service for DeepSeek Harness Web plugins 适合需要渲染TeX公式的Web插件开发者,无需额外样式表或字体。

Package
@ch4acko3/dsh-math-render
Compatibility
Unverified
Harness peer range
>=0.1.0-rc.8
Cordis peer range
^4.0.1
Version
0.1.1
License
MIT
Last updated
Aug 28, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CH4ACKO3/dsh-render-engine#cca409bdfbcdb58e20267f970744d9b2918d218a&path:packages/math-render

@ch4acko3/dsh-math-render

A browser-side Cordis service that renders TeX expressions as native MathML with KaTeX.

export const inject = ['mathRenderer']

export function apply(ctx) {
  const result = ctx.mathRenderer.render({
    source: String.raw`e^{i\pi} + 1 = 0`,
    displayMode: true,
  })
  console.log(result.html)
}

KaTeX runs with trusted commands disabled and emits native MathML, so consumers do not need a stylesheet or bundled font files. The service provides rendering only and does not ship an editor or ChatView card.