dsh-markdown-studio 0.0.0-stage → 0.1.1

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/docs/DETAIL.md ADDED
@@ -0,0 +1,27 @@
1
+ ![Split-pane Markdown editor and live mobile preview](../assets/screenshots/hero-studio-split.png)
2
+
3
+ `dsh-markdown-studio` brings a local-first Markdown writing and WeChat Official Account typesetting studio directly into DeepSeek Harness. Write clean Markdown on the left, preview mobile and desktop layouts in real time on the right across 8 original themes or your own named CSS themes, polish selected passages with custom Writing Skills and inline red/green diff review, and copy ready-to-paste rich HTML for WeChat Official Accounts in one click. Every draft, image, and custom theme stays on your machine.
4
+
5
+ ## Core capabilities
6
+
7
+ 1. **Split-pane live preview and immersive mode**: Switch across Split, Edit, and Preview views, toggle Mobile and Desktop widths with bidirectional scroll sync, and use `/` slash commands, Notion-style shortcuts (**Settings → Help** cheat sheet), document outline jump, find & replace, full English/Chinese localization, and distraction-free immersive mode (`⌘/Ctrl + Shift + F` to enter, `Esc` to exit).
8
+ 2. **One-click WeChat rich-HTML copy**: Press **Copy for WeChat** (`⌘/Ctrl + Enter`) to compile self-contained inline styles automatically, supporting editorial blocks (`:::lead`, `:::tldr`, `:::pull`, `:::meta`, `:::sign`) and `:::scroll` / `:::scroll-x` containers, automatic single-image captions, bottom link footnotes, and preserved code indentation.
9
+ 3. **8 full-spectrum themes and Custom CSS Workbench**: Switch across 8 built-in themes or click **New theme** in the Theme presets drawer to open the left-pane CSS editor with live right-pane preview, automatically extracting color swatches into the **Theme presets** grid.
10
+ 4. **Custom Writing Skills with inline red/green diff**: Create or import standard `SKILL.md` Writing Skills (with an open-source `Humanize` / `去 AI 味` preset included out of the box), streaming word-level red/green inline diffs from your configured host model (`Tab` to accept, `Esc` to reject).
11
+ 5. **On-demand math & diagrams, searchable library, and folder sync**: Loads TeX math and Mermaid rendering engines only when needed; deduplicates pasted images locally and cleans up unused assets on permanent deletion; includes keyword-highlighted library search, recycle bin, conflict-aware merge, full `.zip` archives, and two-way local `.md` folder sync.
12
+
13
+ ## Built-in 8 full-spectrum editorial themes
14
+
15
+ | Theme | Palette & typographic signature | Best for |
16
+ | :--- | :--- | :--- |
17
+ | **Classic** | Crisp blue accent, `01` overline section badges, soft blue-slate code cards | Engineering posts, release notes, general essays |
18
+ | **Gallery** | Museum stone paper, bold top crown rule, hairline `01` chapters, stone-framed code | Business insights, minimalist essays, design & product criticism |
19
+ | **Insight** | `01 /` violet numbered sections, violet-bar TL;DR cards, deep-indigo code blocks | AI deep dives, technical tutorials, research explainers |
20
+ | **Botanical** | Warm oat stationery, `●` persimmon dotted rules, honey marker highlights, sage code notes | Book notes, personal essays, podcast show notes |
21
+ | **Noir Gold** | Obsidian dark canvas, centered champagne-gold chapter rules, warm gold-tinted code | Annual reviews, flagship launches, showcase editions |
22
+ | **Anthology** | Celadon bookleaf tint, `「」` bracketed chapters, hairline quotes, three-line tables | Cultural criticism, humanities, curated anthologies |
23
+ | **Briefing** | Crimson top-rule executive brief, `[01]` square seals, red-header data tables | Weekly digests, market briefings, industry roundups |
24
+ | **Poster** | `NO.01` heavy black rules, vivid yellow sticker highlights, hard-offset shadow cards | Event announcements, curated rankings, bold dispatches |
25
+
26
+ - **Independent code palettes**: Choose **Follow theme** or 8 dedicated palettes (`GitHub Light`, `GitHub Dark`, `One Dark`, `Dracula`, `Nord`, `Solarized Light`, `Solarized Dark`, `Monokai`).
27
+ - **Repository and full documentation**: [github.com/Geekhyt/dsh-markdown-studio](https://github.com/Geekhyt/dsh-markdown-studio)
@@ -0,0 +1,27 @@
1
+ ![Markdown Studio 分栏写作与手机端实时排版预览](../assets/screenshots/hero-studio-split.png)
2
+
3
+ `dsh-markdown-studio` 在 DeepSeek Harness 中提供本地优先的 Markdown 写作与微信公众号排版工作台。左侧专注纯净 Markdown 创作,右侧实时预览手机与桌面版式;内置 8 套原创主题、独立自定义 CSS 工作台与可自定义的写作 Skill 行内对比润色,一键复制即可直接粘贴到微信公众号后台。所有草稿、图片与自定义主题均留在本机。
4
+
5
+ ## 核心创作体验
6
+
7
+ 1. **分栏实时预览与无干扰沉浸模式**:支持分栏、纯编辑、纯预览三视图,手机卡片与桌面宽度一键切换,内置双向滚动同步、`/` 斜杠快捷指令、参考 Notion 习惯的无冲突快捷键(右侧「设置 → 帮助」附完整速查)、文章大纲定位、查找替换、完整中英双语界面与沉浸写作(`⌘/Ctrl + Shift + F` 进入,`Esc` 退出)。
8
+ 2. **微信公众号富文本一键直拷**:点击右上角 **复制到公众号**(或按 `⌘/Ctrl + Enter`)即可自动内联全部排版样式,原生支持 `:::lead` 开篇导语、`:::tldr` 速览卡、`:::pull` 金句、`:::meta` 眉题、`:::sign` 文末落款及 `:::scroll` / `:::scroll-x` 滑动容器,单图自动生成图注,外链自动收进文末参考资料并完整保留代码缩进。
9
+ 3. **8 套全光谱主题与独立左栏自定义 CSS 工作台**:除 8 套内置主题外,可在右侧「主题 → + 新建主题」打开左侧自定义 CSS 工作台边改边看,保存后自动提取色彩缩略卡加入主题预设网格。
10
+ 4. **支持自定义写作 Skill 与行内对比润色**:支持新建或导入标准 `SKILL.md` 自定义写作 Skill(附带开源 `去 AI 味` 预设),选中段落即可复用宿主已配置模型流式生成红绿行内对比,支持 `Tab` 采纳与 `Esc` 拒绝。
11
+ 5. **按需公式图表、文章库与本地同步**:仅在文章包含 TeX 公式或 Mermaid 图表时按需加载渲染引擎;粘贴图片自动去重存至本机并在彻底删除草稿时清理未引用素材;内置全文高亮搜索、回收站、冲突感知合并、`.zip` 完整归档与本地 `.md` 文件夹双向同步。
12
+
13
+ ## 内置 8 套全光谱主题体系
14
+
15
+ | 主题名称 | 色调与版式特征 | 适用场景 |
16
+ | :--- | :--- | :--- |
17
+ | **经典** | 清爽白底蓝调、`01` 上置小号编号章题与蓝灰圆角代码卡 | 日常技术推文、产品更新说明 |
18
+ | **画廊** | 美术馆石纸画布、顶粗黑冠线标题、细黑顶线章题与石框展签 | 商业洞察、极简主义随笔、建筑与产品评论 |
19
+ | **新知** | `01 /` 极光紫序号章题、紫边速览卡与深靛蓝代码块 | AI 前沿解读、科普长文、教程指南 |
20
+ | **森系** | 燕麦信笺暖底、`●` 柿红圆点虚线章题、蜂蜜手划线重点与鼠尾草便签 | 读书笔记、生活随笔、播客文稿 |
21
+ | **黑金** | 曜石暗底、香槟金居中片头章题与暗金柔光代码台 | 年度盘点、旗舰发布、高质感特辑 |
22
+ | **文集** | 天青宋刻书页、「」括号章题、留白引文与学术三线表 | 文化评论、古籍漫谈、散文集 |
23
+ | **简报** | 红顶线商业简报、`[01]` 红底方章、红头数据表与研报代码卡 | 行业周报、商业拆解、热点速递 |
24
+ | **海报** | `NO.01` 粗黑底线章题、明黄贴纸高亮、硬阴影卡片与撕线分割 | 活动预告、榜单盘点、先锋快讯 |
25
+
26
+ - **独立代码块高亮**:除跟随文章主题外,内置 `GitHub Light`、`GitHub Dark`、`One Dark`、`Dracula`、`Nord`、`Solarized Light`、`Solarized Dark`、`Monokai` 8 套代码配色。
27
+ - **项目主页与完整文档**:[github.com/Geekhyt/dsh-markdown-studio](https://github.com/Geekhyt/dsh-markdown-studio)
package/locale/en.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "Markdown Studio",
4
+ "description": "Local-first Markdown writing and WeChat Official Account typesetting studio inside DeepSeek Harness with 8 full-spectrum themes, custom CSS workbench, one-click inline-styled HTML copy, MathJax vector formulas, Mermaid diagrams, WeChat Dark Mode simulation, and custom SKILL.md Writing Skills with inline red/green diff.",
5
+ "detail": "docs/DETAIL.md"
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "Markdown Studio 排版工作台",
4
+ "description": "在 DeepSeek Harness 内提供本地优先的 Markdown 分栏写作与微信公众号排版工作台:内置 8 套全光谱主题与独立自定义 CSS 工作台、支持一键复制带内联样式的公众号富文本、MathJax 矢量公式与 Mermaid 图表、微信深色模式仿真,以及支持自定义 SKILL.md 写作 Skill 行内红绿对比润色。",
5
+ "detail": "docs/DETAIL.zh.md"
6
+ }
7
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "Markdown Studio 排版工作台",
4
+ "description": "在 DeepSeek Harness 内提供本地优先的 Markdown 分栏写作与微信公众号排版工作台:内置 8 套全光谱主题与独立自定义 CSS 工作台、支持一键复制带内联样式的公众号富文本、MathJax 矢量公式与 Mermaid 图表、微信深色模式仿真,以及支持自定义 SKILL.md 写作 Skill 行内红绿对比润色。",
5
+ "detail": "docs/DETAIL.zh.md"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,163 @@
1
1
  {
2
2
  "name": "dsh-markdown-studio",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Local-first Markdown writing and WeChat Official Account typesetting studio for DeepSeek Harness with 8 editorial themes, named custom CSS themes, one-click inline-styled HTML copy, MathJax/Mermaid, and custom SKILL.md writing skills with inline diff.",
5
+ "license": "MIT",
6
+ "author": "Geekhyt",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/Geekhyt/dsh-markdown-studio.git"
10
+ },
11
+ "homepage": "https://github.com/Geekhyt/dsh-markdown-studio#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/Geekhyt/dsh-markdown-studio/issues"
14
+ },
15
+ "type": "module",
16
+ "main": "./dist/index.js",
17
+ "icon": "./assets/icon.svg",
18
+ "exports": {
19
+ ".": "./dist/index.js",
20
+ "./client": "./dist/client.js",
21
+ "./cordis.patch.yml": "./cordis.patch.yml",
22
+ "./icon": "./assets/icon.svg",
23
+ "./locale/*.json": "./locale/*.json",
24
+ "./package.json": "./package.json"
25
+ },
26
+ "files": [
27
+ "dist/index.js",
28
+ "dist/client.js",
29
+ "dist/client.studio.js",
30
+ "dist/mermaid.js",
31
+ "dist/math.js",
32
+ "cordis.patch.yml",
33
+ "assets/icon.svg",
34
+ "assets/screenshots/hero-studio-split.png",
35
+ "docs/DETAIL.md",
36
+ "docs/DETAIL.zh.md",
37
+ "!docs/README.md",
38
+ "locale/*.json",
39
+ "README.md",
40
+ "README.en.md",
41
+ "LICENSE",
42
+ "THIRD_PARTY_NOTICES.md",
43
+ "THIRD_PARTY_LICENSES.txt",
44
+ "CHANGELOG.md"
45
+ ],
46
+ "keywords": [
47
+ "dsh-plugin",
48
+ "deepseek-harness",
49
+ "dsh",
50
+ "markdown",
51
+ "markdown-studio",
52
+ "wechat",
53
+ "typesetting",
54
+ "editor",
55
+ "wechat-official-account",
56
+ "themes",
57
+ "custom-css",
58
+ "writing-skills",
59
+ "local-first"
60
+ ],
61
+ "engines": {
62
+ "node": "^22.18.0 || >=24.11.0",
63
+ "dsh": ">=0.2.1-0"
64
+ },
65
+ "publishConfig": {
66
+ "access": "public",
67
+ "registry": "https://registry.npmjs.org/"
68
+ },
69
+ "scripts": {
70
+ "build": "tsx scripts/build.ts",
71
+ "build:gallery": "tsx scripts/build-gallery.ts",
72
+ "prepack": "npm run build",
73
+ "lint": "biome lint .",
74
+ "format": "biome format --write .",
75
+ "typecheck": "tsc -p tsconfig.json --noEmit",
76
+ "check:host-api": "node scripts/check-host-api.mjs",
77
+ "test": "npm run typecheck && npm run build && tsx test/engine.test.ts && tsx test/domain.test.ts && tsx test/writing-skills.test.ts && tsx test/document-store.test.ts && tsx test/library-backup.test.ts && tsx test/schema.test.ts && tsx test/storage-migration.test.ts && tsx test/data-integrity.test.ts && tsx test/file-session.test.ts && tsx test/application-actions.test.ts && tsx test/custom-css.test.ts && tsx test/library-archive.test.ts && tsx test/library-search.test.ts && tsx test/encode.test.ts && tsx test/themes.test.ts && tsx test/theme-system.test.ts && tsx test/wechat-html.test.ts && tsx test/dom.test.ts && tsx test/copy-spec.test.ts && tsx test/error-boundary.test.ts && tsx test/dsh-primitives.test.ts && tsx test/client.test.ts && tsx test/architecture.test.ts && tsx test/coverage-model.test.ts && tsx test/shortcuts-regression.test.ts && tsx test/app-dom.test.ts && tsx test/zip.test.ts && tsx test/zip-stream.test.ts && tsx test/host-client.test.ts && tsx test/host.test.ts && tsx test/oss-readiness.test.ts",
78
+ "test:browser": "npm run build && tsx test/browser-smoke.ts",
79
+ "test:coverage": "npm test && tsx scripts/build-test.ts && tsx test/browser-smoke.ts --coverage",
80
+ "coverage": "c8 --reporter=json npm run test:coverage && tsx scripts/coverage-check.ts",
81
+ "quality": "npm run coverage && tsx scripts/crap.ts && npm run budget",
82
+ "budget": "tsx scripts/bundle-budget.ts",
83
+ "licenses": "tsx scripts/third-party-licenses.ts",
84
+ "licenses:check": "tsx scripts/third-party-licenses.ts --check",
85
+ "mutation": "tsx scripts/mutation-smoke.ts",
86
+ "mutation:stryker": "stryker run",
87
+ "test:dsh": "tsx test/dsh-e2e.ts",
88
+ "test:migrations": "tsx test/storage-migration.test.ts"
89
+ },
90
+ "dsh": {
91
+ "bundle": {
92
+ "patch": "./cordis.patch.yml"
93
+ },
94
+ "client": {
95
+ "inject": [
96
+ "@deepseek-ai/dsh-client-ui-primitives"
97
+ ],
98
+ "platform": "web",
99
+ "immediately": true
100
+ }
101
+ },
102
+ "overrides": {
103
+ "dompurify": "^3.4.18",
104
+ "glob": "^14.0.6",
105
+ "katex": "^0.19.1",
106
+ "minimatch": "^11.0.8",
107
+ "qs": "^6.17.1"
108
+ },
109
+ "peerDependencies": {
110
+ "@deepseek-ai/cordis": "^4.0.1",
111
+ "@deepseek-ai/dsh": ">=0.2.1-0",
112
+ "react": "^18.2.0 || ^19.0.0",
113
+ "react-dom": "^18.2.0 || ^19.0.0"
114
+ },
115
+ "peerDependenciesMeta": {
116
+ "@deepseek-ai/cordis": {
117
+ "optional": true
118
+ },
119
+ "@deepseek-ai/dsh": {
120
+ "optional": true
121
+ },
122
+ "react": {
123
+ "optional": true
124
+ },
125
+ "react-dom": {
126
+ "optional": true
127
+ }
128
+ },
129
+ "devDependencies": {
130
+ "@biomejs/biome": "^2.6.7",
131
+ "@codemirror/autocomplete": "^6.20.4",
132
+ "@codemirror/commands": "^6.11.1",
133
+ "@codemirror/lang-css": "^6.3.1",
134
+ "@codemirror/lang-markdown": "^6.5.2",
135
+ "@codemirror/language": "^6.13.1",
136
+ "@codemirror/search": "^6.7.2",
137
+ "@codemirror/state": "^6.7.6",
138
+ "@codemirror/view": "^6.43.15",
139
+ "@lezer/highlight": "^1.2.5",
140
+ "@stryker-mutator/core": "^9.6.1",
141
+ "@types/jsdom": "^21.1.7",
142
+ "@types/node": "^22.20.5",
143
+ "@types/pngjs": "^6.0.5",
144
+ "@types/react": "^18.3.31",
145
+ "@types/react-dom": "^18.3.7",
146
+ "@types/wicg-file-system-access": "^2023.10.7",
147
+ "axe-core": "^4.14.0",
148
+ "c8": "^10.1.3",
149
+ "esbuild": "^0.28.2",
150
+ "fake-indexeddb": "^6.2.7",
151
+ "jsdom": "^30.1.3",
152
+ "mathjax-full": "^3.2.2",
153
+ "mermaid": "^11.17.2",
154
+ "mp-darkmode": "^1.2.3-alpha.6",
155
+ "pixelmatch": "^8.0.0",
156
+ "playwright": "^1.64.1",
157
+ "pngjs": "^7.0.0",
158
+ "react": "18.3.1",
159
+ "react-dom": "18.3.1",
160
+ "tsx": "^4.23.15",
161
+ "typescript": "^5.9.3"
162
+ }
163
+ }