Chuyển đến nội dung chính

dsh-math-render

Đã xác minh

@ch4acko3/dsh-math-render · v0.1.1 · MIT · Giao diện web

KaTeX MathML rendering service for DeepSeek Harness Web plugins

Cài đặt

dsh plugin add @ch4acko3/dsh-math-render

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.

Thẻ

Readme

@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.