GitHubJiKe/dsh-markdown-preview
GitHubJiKe★ 0JavaScript最后同步: 2026-08-15
dsh-markdown-preview
README 摘要
dsh-markdown-preview In-chat preview for produced files in DeepSeek Harness Web. By default, clicking a produced-file chip in the DSH Web GUI hands the file to the operating system's default application ( open on macOS → Xcode for many extensions). This plugin takes over the produced-files row and makes the click render the file right in the conversation — Markdown is rendered with markdown-it + highlight.js server-side, images preview inline, and any other text file shows as plain text. The old behaviors stay one click away: open in the system app, or reveal in the folder. Features - Click a produced-file chip → inline preview , no native app, no new tab. - Markdown rendered properly (GFM tables, fenced code, blockquotes, links, hard line breaks) with syntax highlighting in code fences (highlight.js common languages). - Image preview (PNG / JPEG / GIF / WebP) as data URLs — no extra route. - Plain-text fallback for every other text file; binary files are sniffed and refused with a clear message. - Panel header with file size, copy content , open in system app , and collapse. - 1 MiB cap for text / 4 MiB for images, with an explicit truncation notice. - Keeps the stock experience: …
在 GitHub 查看完整 README →