TowardsDawn/dsh-user-markdown ↗★ 0

dsh-user-markdown

DSH 插件:让用户发出的消息也在 Web GUI 中按 Markdown 渲染(原生气泡、dsh-easyrewrite、dsh-rewind-plugin 均可共存)。 · DSH plugin: render the user's own outgoing messages as Markdown in the Web GUI. 适合习惯在输入端使用Markdown排版并希望直观预览格式的用户

パッケージ
dsh-user-markdown
互換性
未検証
バージョン
1.0.1
ライセンス
MIT
最終更新
2026/09/28

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TowardsDawn/dsh-user-markdown

ドキュメント

README 全文を読む ↗

使用

装上即生效,无需任何配置。

临时开关(浏览器侧,立即生效)

window.__dshUserMarkdown.disable()          // 恢复原文显示
window.__dshUserMarkdown.enable()           // 重新渲染
window.__dshUserMarkdown.toggle()
window.__dshUserMarkdown.refresh()          // 强制重扫一次(排查用)
window.__dshUserMarkdown.render('# 测试')   // 直接试用渲染器

开关状态存在 localStorage['dsh-user-markdown:enabled']('0' 表示停用),刷新页面后依然有效。

整插件停用(配置侧)

在 ~/.dsh/profiles/web/cordis.patch.yml 追加:

- id: dsh-user-markdown
  name: 'dsh-user-markdown'
  disabled: true

整插件停用(配置侧)

在 ~/.dsh/profiles/web/cordis.patch.yml 追加:

- id: dsh-user-markdown
  name: 'dsh-user-markdown'
  disabled: true