Skip to content

v3.1.0 - KaTeX formula safety + seamless theming

Choose a tag to compare

@zgxaxdd zgxaxdd released this 04 Sep 09:37
· 7 commits to master since this release

dsh-html-render v3.1.0

Inline HTML + KaTeX rendering for DeepSeek Harness (DSH) chats: the model writes a ```dsh-html fence, the chat renders real HTML - styles, local scripts, math - borderless, theme-adaptive, height-accurate.

Highlights

  • KaTeX formulas ($...$ / $$...$$) pre-rendered locally, zero network, never shows raw source
  • Sandbox: allow-scripts opaque origin + CSP (no network / no iframe / no parent access)
  • Theme-adaptive: background/text sampled from the host chat, dark mode seamless
  • Height: content-edge measurement + fonts.ready re-report + polling - no scrollbars, no self-growth
  • v3.1: formula-safe tokenizer (never touches tags/script/pre/code, CJK currency guard), KaTeX-missing fallback (fence never hangs), truncation indicator, noopener tabs, upgrade-safe backup, -All multi-dist, CI

Install (local/self-hosted DSH only)

powershell -ExecutionPolicy Bypass -File .\install-dsh-html.ps1

Then Ctrl+F5 the DSH web GUI and paste a ```dsh-html fence. See README for -Check / -Uninstall / -All and the 5-family style library in skills/dsh-html-usage.