baosfeng/my-dsh-plugins--plugins-dsh-md-render5

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.

包名
dsh-md-render
版本
0.1.8
最近更新
2026年9月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baosfeng/my-dsh-plugins#cc837f22ecaa841de7d263346073dc44c55d50ee&path:plugins/dsh-md-render

使用

无需任何操作,插件激活即生效。模型输出表格(含不标准格式)时自动渲染:

| 插件                | 版本  |
| ------------------- | ----- |
| 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 直接配置:

配置默认说明
copyButtontrue复制按钮(issue #74,代码块/整段)
syntaxHighlighttrue代码块语法高亮(issue #80)
languageLabeltrue代码块语言标签(issue #80)
lineNumberstrue代码块行号(issue #80)
taskListtrue任务列表 checkbox(issue #81)
strikethroughtrue删除线(issue #81)
imagetrue图片渲染(issue #81)
nestedListtrue嵌套列表(issue #81)
mathStructurestrue公式结构(issue #82)
tableSorttrue表头排序(issue #83)
tableFoldtrue长表格折叠(issue #83)
copyButtonPositionbottom-right代码块复制按钮位置(issue #146):bottom-right 右下角 / header 头部(与语言标签同排)
codeThemebright代码主题(issue #146):bright(明亮高对比,默认)/ github-light / github-dark / one-dark / nord

示例 patch:lineNumbers: false 关闭行号、syntaxHighlight: false 关闭语法高亮、codeTheme: one-dark 切换代码主题。开关需以布尔值提供、选择项需为枚举合法值,非法/缺省保持默认。设置页保存后无需重启(DSH watchUserPatches 热重载);issue #80 的 lineNumbers 单开关写法保持兼容。