DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Math Render — DeepSeek Harness 插件(DSH Plugin)
← Plugins

dsh-math-render

Math Render

在 DSH 网页聊天中渲染 LaTeX:在您自己的消息气泡中显示公式,并在输入时实时预览编辑器草稿。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-math-render@1.0.1
README兼容性版本

兼容性与来源证明

Math Render 以 dsh-math-render 发布,当前版本为 1.0.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/30

版本

1.0.1stable
2026/9/30

相关插件

正在加载相关插件…

最新版
1.0.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
51.5 kB
文件数
7
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 1
周下载
0
最近提交
2026/9/30
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 ui-customization 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profile用于 Agent Teams Remote 和 UI 插件的实验性 Web 配置层Ab Chartdsh-ab-chart带有绘制其调用的浏览器卡片的图表渲染工具,封装在一个可发布的插件包中Client Ui Skill Explorer@linxin666/dsh-client-ui-skill-explorerDSH 技能中心:按来源(bundled / project / user / custom / runtime)浏览已加载的技能,在 Web GUI 面板中启用或禁用、创建和删除技能。

README

dsh-math-render

A DeepSeek Harness (dsh) plugin that renders LaTeX in the web GUI:

  • Your own message bubble — $...$, $$...$$, \(...\) and \[...\] in a message you sent render as formulas, in place.
  • Composer draft preview — while the draft contains a formula, a strip above the input renders it live. With no formula in the draft the strip does not exist at all.

Assistant replies already render through the shell's KaTeX pipeline; this plugin does not touch them.

Install

dsh plugin --profile web add dsh-math-render

Restart the harness afterwards (the profile's bundle list is read at boot), then reload the GUI page.

Installing from a checkout instead
dsh plugin --profile web add /path/to/dsh-math-render

Same mechanism: the package declares a dsh.bundle layer, so dsh plugin add records it in the profile and its row mounts at the next boot.

How it works

SeatWhat it doesWhy that seat
conversation.chat.node, keys user and steering, at priority: -1Shadows the shipped user-bubble renderer. The bubble keeps its shipped shape — same DOM, same geometry, same attachments, same copy action. Only TeX runs are handed to the shell's own MarkdownText, the renderer assistant replies useThe slot registry projects one winner per cell in ascending priority order, so -1 outranks the shipped 0. The registry's own error text documents the route: register at a different priority to shadow it (lowest renders)
conversation.input.dock, id math-preview, order: 5The draft preview strip above the composerThat seat is a session-scoped list seat rendered with the input snapshot (draft included), so no internal service has to be reached; order: 5 keeps it ahead of the shipped queue dock at 20

The host half is a package anchor plus one read-only diagnostic route. It holds no state and touches nothing at boot.

Behaviour

  • A message without TeX renders exactly as the shipped bubble did. Prose still goes through the shell's plain-text projection, so it is not Markdown-ified: *, # and backticks keep their literal meaning.
  • Backticks are the escape hatch. TeX inside a fenced code block or an inline code span stays literal, and so does \$.
  • Currency is not mistaken for math. costs $5 and $10 stays prose: a closing $ glued to a digit is refused, as is space-padded content.
  • Bad TeX is not hidden. It goes to the shell renderer, so a syntax error shows KaTeX's error output, exactly as in an assistant reply.
  • A crashing renderer falls back to the shipped bubble. The slot boundary contains entry crashes and abdicates the entry from its cell, so the worst case is "no effect", not a broken transcript.
  • No preview on the new-session hero composer. The host renders that seat only for a bound session; it appears once the first message puts you inside the conversation.

Limitations

  • The bubble geometry is copied CSS. Those sheets are CSS modules whose hashed class names no out-of-tree bundle can resolve, and the client module table exposes no ui-chat component. An accurate restyle of the shell will not reach these declarations, so the bubble keeps the geometry of the build it was copied from. Colours, fonts and spacing ride --dsw-* / --dsh-* custom properties, which the shell still owns. Removing the plugin restores the shipped bubble exactly.
  • The composer preview is a preview, not inline WYSIWYG. The composer is a Lexical editor and the plugin seams expose no inline widget. Typing $x^2$ renders in the strip above the input, not inside the editable area.
  • dsh.bundle and a hand-written file:// row are mutually exclusive. Two active Loader sources for one package name is an error; install it one way.

Diagnostics

curl -s http://127.0.0.1:<port>/plugin/math-render/status
# {"plugin":"dsh-math-render","version":"1.0.0","mounted":true,"clientRegistered":true,"clientBundle":"…/client.js"}

Loopback Host only. mounted proves the row resolved; clientRegistered proves the browser half is in the client module graph. In the page console, document.querySelector('style[data-plugin-css="dsh-math-render/styles.css"]') is non-null once the browser half has loaded.

Tests

npm install
npm test

No harness, no browser, no network. 27 assertions over the tokenizer (delimiters, display math across lines, currency and code-span refusals, plus the invariant that segments must reconstruct the source exactly), the shapes both seats are registered with, the components (TeX routes to MarkdownText, a mathless message never reaches it, malformed nodes degrade instead of throwing, the preview's zero footprint), and — when the shell's own slot registry is reachable — the shadowing semantics, including that abdication hands the cell back to the shipped bubble.

Compatibility

Written and verified against dsh 0.1.5-rc.2 (client packages 0.1.5-rc.2, DSH Desktop 2.0.13). Seat names, priority shadowing, the projectUserText / MarkdownText / writeClipboard primitives, and the conversation.input.dock render props were read out of that version's sources. Newer shell versions may move any of them.

License

MIT