Bundle
dsh-client-ui-markdown-enhance
Markdown 彩色高亮与思维链悬浮窗口(Web 持久化客户端插件)
- Source
- Zydr114
- License
- MIT
- Updated
- Updated 9 days ago
Readme
# dsh-client-ui-markdown-enhance DeepSeek Harness Web 端的 Markdown 增强插件:为正文与思维链提供可自定义的彩色高亮,并把思维链从正文中独立出来,放到一个可拖拽的悬浮窗口中查看。 ## 功能 1. **Markdown 彩色高亮**(可开关) - 标题、加粗、斜体、行内代码、列表序号、引用、链接、代码块背景/边框均可自定义颜色。 - 仅作用于助手正文(`assistant-step`)与思维链悬浮窗,不影响其它 UI。 2. **思维链独立悬浮窗口**(可开关) - 点击正文中的「Think」按钮,在固定大小(640×480)的悬浮窗口中查看对应思维链,而不是在正文中展开。 - 再次点击同一个「Think」关闭窗口;点击另一个「Think」切换到对应思维链。 - 窗口支持拖拽、收起、关闭;流式输出时自动跟随滚动,向上滚动即暂停跟随,点左下角「回底」一键回底并恢复跟随。 - 思维链以 Markdown 渲染,并保持比正文略暗的样式。 - 关闭该选项则恢复应用默认的「正文中展开」行为。 所有设置通过 `localStorage` 持久化,页面刷新后依然保留。 ## 安装 ```bash # 从 GitHub 安装(推荐) dsh plugin --profile web add github:Zydr114/dsh-markdown-enhance # 或从本地目录安装(使用已安装的 dsh 二进制) dsh plugin --profile web add "file:D:/AgentsWorkspace/dsh-plugin-markdown-enhance" ``` 安装完成后**重启** `dsh web`(插件集变更需重启才生效)。 ## 配置 打开 `设置 → Markdown 增强`: - **正文 Markdown 彩色高亮**:开关 + 9 个颜色选择器。 - **思维链悬浮窗口**:开关。 ## 目录结构 ``` package.json 插件清单(dsh.client + dsh.bundle) cordis.patch.yml 向 web profile 插入客户端插件行 lib/index.js node 半(空实现) lib/client.js 浏览器半(__ModuleLoader__ 插件包) ``` ## 说明 - 本插件为纯客户端(浏览器)插件,无 node 侧逻辑。 - 浏览器半以手写 `window.__ModuleLoader__.load` 产物形式提供,未经过 `tsdown` 构建;安装后请实测验证。 - 移除插件:`dsh plugin --profile web remove dsh-client-ui-markdown-enhance`。
Install
dsh plugin --profile web add github:Zydr114/dsh-markdown-enhance
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-client-ui-markdown-enhance from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.