dsh-md-plus

DSH Web 会话的 Markdown 显示增强,在宿主渲染之上加样式与按钮而不替换渲染器:代码块变成带语言名和图标按钮(换行、复制)的卡片;超长的代码块、表格与 Mermaid 图会折叠,底部可展开收起;Mermaid 围栏渲染成 SVG,可在图形与代码间切换,支持全屏查看(滚轮缩放、拖拽、双击适应)以及导出 SVG 或 PNG;表格表头吸顶,并提供 CSV 或 Markdown 复制;设置面板可调图表配色、代码字号、图表默认视图和三类折叠阈值。

插件介绍

DSH Web 会话的 Markdown 显示增强,在宿主渲染之上加样式与按钮而不替换渲染器:代码块变成带语言名和图标按钮(换行、复制)的卡片;超长的代码块、表格与 Mermaid 图会折叠,底部可展开收起;Mermaid 围栏渲染成 SVG,可在图形与代码间切换,支持全屏查看(滚轮缩放、拖拽、双击适应)以及导出 SVG 或 PNG;表格表头吸顶,并提供 CSV 或 Markdown 复制;设置面板可调图表配色、代码字号、图表默认视图和三类折叠阈值。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-md-plus

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:JosephHy/dsh-md-plus

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。