dsh-doc-compare: Generate a human-readable report by comparing two documents paragraph by paragraph.
dsh-doc-compare (@deepwhale-cn/dsh-doc-compare, v0.1.0, MIT, author feely0208) is a DSH plugin that compares two documents in docx, md, or txt formats paragraph by paragraph. It identifies three types of differences—additions, deletions, and modifications—along with "before -> after" explanations, and separately highlights changes in heading levels and table row counts. By default, it outputs a Markdown report but supports saving to a custom location with `--out` and machine-readable output with `--json`. The entire process runs locally without requiring an internet connection. To install, run `dsh plugin --profile web add @deepwhale-cn/dsh-doc-compare`. The `dsh-doc-compare` command line exit codes are 0 (no differences), 1 (differences found), and 2 (parse failure). It compares up to 2,000 paragraphs by default, which can be adjusted using `--max-paragraphs`.
Read More