memorax-ai/dsh-render-engine--packages-math-render ↗★ 1

@ch4acko3/dsh-math-render

KaTeX MathML rendering service for DeepSeek Harness Web plugins 适合需要在Web插件中渲染数学公式且不依赖外部字体的开发者。

패키지
@ch4acko3/dsh-math-render
호환성
미검증
Cordis peer 범위
^4.0.1
버전
0.1.2
라이선스
MIT
최근 업데이트
2026. 9. 24.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:memorax-ai/dsh-render-engine#9582bf138d3a6d7381a84359a4a0b878a1ea8952&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.