huanglianqi/dsh-math-render

dsh-math-render renders LaTeX in the DSH web GUI where the shell does not: $...$, $$...$$, \(...\) and \[...\] inside your own sent message bubble render as formulas in place, and a strip above the composer previews the draft's formula live - while backticks stay literal, $5 currency is not mistaken for math, and bad TeX still shows KaTeX's error.

dsh-math-render renders LaTeX in the DSH web GUI where the shell does not. Formulas written as $...$, $$...$$, \(...\) or \[...\] inside your own sent message bubble render in place, and while the composer draft contains a formula a strip above the input previews it live. Backticks are the escape hatch - TeX inside a fenced code block or an inline code span stays literal, as does \$ - currency is not mistaken for math (costs $5 and $10 stays prose, because a closing $ glued to a digit is refused), and 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 read-only diagnostic route at /plugin/math-render/status reports whether the row resolved and the browser half registered.

Web UI Enhancements ★ 1
View on GitHub ↗

Install

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

Copied verbatim from the README's Install block. The README also documents a checkout form (dsh plugin --profile web add /path/to/dsh-math-render). npm package dsh-math-render at 1.0.1 (registry check 2026-10-16; the registry repository field resolves back to this repo).

Compatibility

It uses two official seats: conversation.chat.node for the user and steering keys at priority -1, shadowing the shipped user-bubble renderer so only TeX runs are handed to the shell's own MarkdownText (the bubble keeps its shipped DOM, geometry, attachments and copy action, and removing the plugin restores the shipped bubble exactly); and conversation.input.dock for a draft-preview strip that does not exist at all when the draft has no formula. The README documents the trade-offs honestly: the bubble geometry is copied CSS that will not follow a restyled shell (colours, fonts and spacing still ride the shell's custom properties), the composer preview is a preview not inline WYSIWYG, and dsh.bundle and a hand-written file:// row are mutually exclusive. A crashing renderer falls back to the shipped bubble, so the worst case is no effect rather than a broken transcript.

Details

Alternatives

0lidaxiang/dsh-plugin-greet · 147228/dsh-black-whale · 15828148/dsh-portable-launcher

More plugins in Web UI Enhancements

Browse more in Web UI Enhancements

Guides for Web UI Enhancements plugins