baosfeng/my-dsh-plugins--plugins-dsh-md-render ↗★ 5
dsh-md-render
DSH 对话 Markdown 表格渲染增强插件:非思考模式下模型输出的表格(含无首尾管道符等不标准格式)自动识别并渲染为表格,宽表格横向滚动。DSH web plugin: enhanced markdown table rendering for non-thinking mode, tolerant of non-standard table formats, wide-table horizontal scroll.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baosfeng/my-dsh-plugins#cc837f22ecaa841de7d263346073dc44c55d50ee&path:plugins/dsh-md-render说明文档
阅读完整 README ↗使用
无需任何操作,插件激活即生效。模型输出表格(含不标准格式)时自动渲染:
| 插件 | 版本 |
| ------------------- | ----- |
| dsh-file-activity | 0.4.2 |
| dsh-think-zh-expand | 0.4.2 |
上面的表格(无首尾管道符)会自动渲染为带表头、边框、对齐的表格;列数 ≥4 的宽表格支持横向滚动。行内公式 $x^2$ 渲染为上标结构,$\frac{a}{b}$、$\sqrt{x}$、$\sum_{i=1}^{n} i$、$\alpha \beta$ 等常见数学结构自动排版;块级公式 $$E=mc^2$$ 居中显示。
配置
全部增强功能独立配置开关,默认开启(issue #84)。设置 → 插件 → 渲染 页签内可视化编辑,保存即生效、重启不丢;也可在 cordis.patch.yml 直接配置:
| 配置 | 默认 | 说明 |
|---|---|---|
copyButton | true | 复制按钮(issue #74,代码块/整段) |
syntaxHighlight | true | 代码块语法高亮(issue #80) |
languageLabel | true | 代码块语言标签(issue #80) |
lineNumbers | true | 代码块行号(issue #80) |
taskList | true | 任务列表 checkbox(issue #81) |
strikethrough | true | 删除线(issue #81) |
image | true | 图片渲染(issue #81) |
nestedList | true | 嵌套列表(issue #81) |
mathStructures | true | 公式结构(issue #82) |
tableSort | true | 表头排序(issue #83) |
tableFold | true | 长表格折叠(issue #83) |
copyButtonPosition | bottom-right | 代码块复制按钮位置(issue #146):bottom-right 右下角 / header 头部(与语言标签同排) |
codeTheme | bright | 代码主题(issue #146):bright(明亮高对比,默认)/ github-light / github-dark / one-dark / nord |
示例 patch:
lineNumbers: false关闭行号、syntaxHighlight: false关闭语法高亮、codeTheme: one-dark切换代码主题。开关需以布尔值提供、选择项需为枚举合法值,非法/缺省保持默认。设置页保存后无需重启(DSH watchUserPatches 热重载);issue #80 的lineNumbers单开关写法保持兼容。