dsh-md-table-formatter
在终端中运行以下命令:
dsh plugin install Hyna-hla/dsh-md-table-formatter
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 中执行 dsh plugin install Hyna-hla/dsh-md-table-formatter 即可安装,开源地址为 https://github.com/Hyna-hla/dsh-md-table-formatter
插件介绍
LLM-generated Markdown tables often come back with misaligned columns and inconsistent spacing, making them awkward to read and edit. dsh-md-table-formatter hooks into the end of every turn, detects unaligned GFM tables in assistant replies, and swaps them for neatly aligned versions on the model-visible surface — while the raw output stays intact in the append-only session log for full traceability.
Column widths are calculated in Unicode codepoints, so CJK and full-width characters are automatically weighted as two columns, keeping mixed Chinese-English tables properly aligned. All three alignment modes (left, right, centered) are supported, and content inside code fences is safely skipped to avoid mangling code blocks. A configurable minColumns threshold lets you exclude very narrow tables from formatting, reducing unnecessary interference.
This plugin is a quiet quality-of-life upgrade for anyone who regularly generates or edits multi-column Markdown tables inside DeepSeek Harness — think documentation drafting, data report creation, or README maintenance. It runs in the background after each turn, requires no manual steps, and does not affect token accounting or safe session replay.
使用场景
- 助手回复中的 GFM 表格列宽参差不齐,阅读体验差
- 中英混合表格因全角字符宽度不同导致对齐错乱
- 批量生成文档表格后需要手动逐行调整列宽
适合人员
- 频繁生成 Markdown 表格的文档撰写者
- 在 DeepSeek Harness 中处理数据报告的分析师
- 注重输出格式一致性的 AI 工作流用户