dsh-md-studio 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  本项目所有显著变更都记录在此文件中。格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本遵循语义化版本。
4
4
 
5
+ ## [1.2.0] - 2026-10-13
6
+
7
+ ### 新增
8
+
9
+ - **对话内 Mermaid 渲染**:聊天消息里的 ` ```mermaid ` 块就地渲染为图表卡片,与右侧文档预览共用同一渲染管线(语法自动修复、图形/源码切换、全屏、下载 SVG、深浅主题重绘)。
10
+ - **流式稳定检测**:AI 正在输出的图表块静默 400ms 后才渲染;输出完成后若内容被重写,自动重建图表。消息卸载(含虚拟列表回收)时自动清理。
11
+ - **与 dsh-mermaid 插件共存安全**:监听器互认对方的渲染产物,不双渲染。
12
+
13
+ ### 说明
14
+
15
+ - 右侧文件预览行为与 1.1.1 完全一致;本次只是把同一渲染能力扩展到对话消息。
16
+
5
17
  ## [1.1.1] - 2026-10-09
6
18
 
7
19
  ### 新增
package/README.en.md CHANGED
@@ -2,11 +2,13 @@
2
2
 
3
3
  # 📄 Markdown Studio for DeepSeek Harness
4
4
 
5
- **Mermaid diagrams, math formulas and syntax highlighting rendered right inside DSH's native right-sidebar file preview.**
5
+ **Mermaid diagrams, math formulas and syntax highlighting rendered right inside DSH's native right-sidebar file preview — and in chat messages.**
6
6
 
7
7
  The rendering engine ships with the plugin — **fully offline** · no document changes needed · disable to restore the stock renderer
8
8
 
9
9
  [![CI](https://github.com/BioAIEvolu/dsh-md-studio/actions/workflows/ci.yml/badge.svg)](https://github.com/BioAIEvolu/dsh-md-studio/actions/workflows/ci.yml)
10
+ [![npm](https://img.shields.io/npm/v/dsh-md-studio)](https://www.npmjs.com/package/dsh-md-studio)
11
+ [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)
10
12
  [![GitHub release](https://img.shields.io/github/v/release/BioAIEvolu/dsh-md-studio)](https://github.com/BioAIEvolu/dsh-md-studio/releases)
11
13
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
12
14
  [![DSH](https://img.shields.io/badge/DeepSeek%20Harness-0.2.0--rc.2-blue)](https://github.com/deepseek-ai/deepseek-harness)
@@ -30,7 +32,7 @@ DeepSeek Harness's right-sidebar preview is great — except ` ```mermaid ` bloc
30
32
 
31
33
  ## ✨ Features
32
34
 
33
- - **📈 Mermaid diagrams** — flowcharts, sequence, gantt, pie and the full Mermaid 11 family; per-diagram toolbar with **diagram/source toggle · fullscreen (zoom & pan) · SVG download**; automatic re-render on theme change
35
+ - **📈 Mermaid diagrams, chat + documents** — the same pipeline renders ` ```mermaid ` blocks in chat messages and in opened documents: flowcharts, sequence, gantt, pie and the full Mermaid 11 family; per-diagram toolbar with **diagram/source toggle · fullscreen (zoom & pan) · SVG download**; automatic re-render on theme change
34
36
  - **🩹 Syntax auto-repair** — the most common real-world breaker, ASCII parentheses inside node labels (`W2[Codex / Claude Code (ACP)]`), is repaired and rendered with an "auto-repaired" badge. No need to edit your documents
35
37
  - **📐 KaTeX math** — inline `$...$` and display `$$...$$`
36
38
  - **📝 Full GFM** — tables, task lists, footnotes, heading anchors
package/README.md CHANGED
@@ -7,6 +7,8 @@
7
7
  渲染引擎随插件内置,**完全离线可用** · 无需改动你的文档 · 停用即恢复官方渲染器
8
8
 
9
9
  [![CI](https://github.com/BioAIEvolu/dsh-md-studio/actions/workflows/ci.yml/badge.svg)](https://github.com/BioAIEvolu/dsh-md-studio/actions/workflows/ci.yml)
10
+ [![npm](https://img.shields.io/npm/v/dsh-md-studio)](https://www.npmjs.com/package/dsh-md-studio)
11
+ [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)
10
12
  [![GitHub release](https://img.shields.io/github/v/release/BioAIEvolu/dsh-md-studio)](https://github.com/BioAIEvolu/dsh-md-studio/releases)
11
13
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
12
14
  [![DSH](https://img.shields.io/badge/DeepSeek%20Harness-0.2.0--rc.2-blue)](https://github.com/deepseek-ai/deepseek-harness)
@@ -31,9 +33,10 @@ DeepSeek Harness 的右侧文件预览很好用,但 **Mermaid 代码块只会
31
33
 
32
34
  ## ✨ 特性
33
35
 
36
+ - **📈 对话内 + 文档预览双渲染**:聊天消息里的 Mermaid 块与右侧打开的 Markdown 文档,用同一套管线就地渲染成 SVG 图
34
37
  - **📈 Mermaid 图表**:流程图、时序图、甘特图、饼图等 Mermaid 11 全系图型;每张图带 **图形/源码切换 · 全屏(缩放/拖拽)· 下载 SVG** 工具栏;深浅主题自动重绘
35
38
  - **🩹 语法自动修复**:真实文档里最常见的 `W2[Codex / Claude Code (ACP)]` 这类"标签含英文括号"语法错误,**自动修复后照常渲染**,并在徽章标注"已自动修复"——不用改你的文档
36
- - **📐 KaTeX 数学公式**:行内 `$...$` 与块级 `$$...$$`
39
+ - **📐 KaTeX 数学公式**:行内 `$...$` 与块级 `$$...$$`(文档预览)
37
40
  - **📝 完整 GFM**:表格、任务列表、脚注、删除线、标题锚点跳转
38
41
  - **🎨 代码高亮**:highlight.js 常用语言集
39
42
  - **🖼️ 本地图片**:相对路径按文档目录解析,经 DSH 原生鉴权接口读取
@@ -137,7 +140,7 @@ pnpm pack # 打包 dsh-md-studio-x.y.z.tgz
137
140
 
138
141
  ## 🗺️ Roadmap
139
142
 
140
- - [ ] 对话内 Mermaid 渲染(与 [dsh-mermaid](https://github.com/MrmoLabs/dsh-mermaid) 互补)
143
+ - [x] 对话内 Mermaid 渲染(v1.2 已实现;与 [dsh-mermaid](https://github.com/MrmoLabs/dsh-mermaid) 插件共存安全,互不双渲染)
141
144
  - [ ] 图表导出 PNG
142
145
  - [ ] 目录(TOC)侧栏
143
146
  - [ ] 设置页(字号、图表方向)