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/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.en.md +130 -0
- package/README.md +129 -2
- package/THIRD_PARTY_LICENSES.txt +2634 -0
- package/THIRD_PARTY_NOTICES.md +58 -0
- package/assets/icon.svg +15 -0
- package/assets/screenshots/hero-studio-split.png +0 -0
- package/cordis.patch.yml +6 -0
- package/dist/client.js +8 -0
- package/dist/client.studio.js +580 -0
- package/dist/index.js +1020 -0
- package/dist/math.js +15 -0
- package/dist/mermaid.js +3592 -0
- package/docs/DETAIL.md +27 -0
- package/docs/DETAIL.zh.md +27 -0
- package/locale/en.json +7 -0
- package/locale/zh-CN.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +161 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `dsh-markdown-studio` are documented in this file.
|
|
4
|
+
|
|
5
|
+
## [0.1.1] - 2026-11-20
|
|
6
|
+
|
|
7
|
+
Initial public release.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **Local-First Markdown Studio & 5-Bundle Lazy Architecture for DeepSeek Harness**:
|
|
11
|
+
- `4.2 KiB` (`2.1 KiB` gzip) cold-boot client shell (`dist/client.js`) that loads the full Studio runtime (`dist/client.studio.js`) via official `require.async`, plus on-demand MathJax 3 (`dist/math.js`) and Mermaid 11 (`dist/mermaid.js`) chunks and reversible hot-disable stylesheet cleanup.
|
|
12
|
+
- Split, Edit-only, and Preview-only modes with mobile (`414 px`) and desktop viewport simulation, bidirectional scroll sync, document outline, find & replace, `/` slash command menu, Format toolbar dropdown, Notion-style conflict-free shortcuts (`⌘/Ctrl + Shift + E` inline math, `⌘/Ctrl + Alt + Shift + E` math block, `⌘/Ctrl + Alt + 4` task list, `⌘/Ctrl + Alt + -` divider) with a built-in **Settings → Help** slash-command & shortcut reference, and distraction-free immersive mode (`⌘/Ctrl + Shift + F` to toggle, `Esc` to exit).
|
|
13
|
+
- Native integration with `@deepseek-ai/dsh-client-ui-primitives` (`Modal`, `Button`, `Input`, `Checkbox`, `SegmentedTabs`, `Toast`, `Tooltip`, `Menu`) with complete bilingual (`zh` / `en`) localization across UI chrome, initial sample articles, slash snippet templates, rendered `References` / `TL;DR` headings, host/AI error diagnostics, and Plugin Manager detail pages (`docs/DETAIL.zh.md` / `docs/DETAIL.md`).
|
|
14
|
+
- **WeChat Official Account Inline-Style Copy Pipeline & Dark Mode Simulation**:
|
|
15
|
+
- Deterministic CSS custom-property resolution and specificity-ordered inline style compilation into `<section id="mdstudio">`, stripping unsupported rules, materializing `::before`/`::after`, supporting editorial directives (`:::lead`, `:::tldr`, `:::pull`, `:::meta`, `:::sign`), standalone figure auto-captions, 5 GitHub Alert callout types (`NOTE`, `TIP`, `IMPORTANT`, `WARNING`, `CAUTION`), vertical/horizontal scroll containers (`:::scroll` / `:::scroll-x`), external URL reference footnotes, inline vector MathJax SVGs, and rasterized Mermaid diagrams.
|
|
16
|
+
- Real-time WeChat Dark Mode simulation powered by official `mp-darkmode` when DeepSeek Harness is in dark theme, while keeping clipboard output isolated in the clean authored light palette (preserving dark-canvas themes on standalone `.html` export).
|
|
17
|
+
- **8 Full-Spectrum Built-in Editorial Themes + Dedicated Custom CSS Workbench**:
|
|
18
|
+
- `Tone × Rhythm × Atoms` composable theme engine (`src/theme-system/`) with automatic WCAG 2 AA (`4.5:1`) body and code contrast convergence across 8 distinct presets: 经典 Classic (`classic`), 画廊 Gallery (`gallery`), 新知 Insight (`tech`), 森系 Botanical (`warm`), 黑金 Noir Gold (`night`), 文集 Anthology (`ink`), 简报 Briefing (`ruby`), and 海报 Poster (`poster`), plus theme-linked `Follow theme` code surfaces and 8 independent code block highlight palettes.
|
|
19
|
+
- Dedicated left-pane **Custom CSS Workbench** (**New theme**) to author, switch, rename, import/export, and delete multiple named CSS themes with live preview and automatic miniature color swatches inside the Theme presets grid.
|
|
20
|
+
- **Custom Writing Skills & Inline Red/Green Diff**:
|
|
21
|
+
- Create, import, and export standard `SKILL.md` Writing Skills via the Writing Skill Manager; ships with the MIT-licensed `op7418/Humanizer-zh` ruleset as a ready-to-use preset.
|
|
22
|
+
- Floating selection pill (`⌘/Ctrl + J`) that runs the active Writing Skill through the host's configured LLM service (`POST /api/markdown-studio/ai`) and streams a CodeMirror 6 word-level red/green inline diff (`Tab` to accept, `Esc` to reject) with Markdown syntax-loss guards, automatic fence unwrapping, and strict clipboard isolation prior to acceptance.
|
|
23
|
+
- **Content-Addressed Local Asset Server, Data Integrity & Document Library**:
|
|
24
|
+
- Host-side content-addressed PNG/JPEG store (`$DSH_HOME/storages/dsh-markdown-studio/assets/`) with magic-byte validation, authenticated write routes, automatic reference-counted garbage collection on permanent article deletion, and a read-only loopback server (`127.0.0.1:4010-4019`) so Markdown stays portable as `assets/<hash>.png`.
|
|
25
|
+
- Multi-article `localStorage` library with no artificial article/trash limits, future-schema overwrite protection, unreadable-payload preservation, keyword-highlighted search, conflict-aware merge dialog, `PK` magic-header `.zip` archive import/export (`4096` entries / `256 MiB` bounded decompression), and SHA-256 baseline conflict detection for local File System Access API `.md` / folder workspaces.
|
|
26
|
+
|
|
27
|
+
[0.1.1]: https://github.com/Geekhyt/dsh-markdown-studio/releases/tag/v0.1.1
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Geekhyt and dsh-markdown-studio contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.en.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# dsh-markdown-studio
|
|
2
|
+
|
|
3
|
+
[简体中文](./README.md) | **English** | [Developer and architecture guide](./docs/DEVELOPMENT.md)
|
|
4
|
+
|
|
5
|
+
[](https://github.com/Geekhyt/dsh-markdown-studio/actions/workflows/ci.yml) [](https://www.npmjs.com/package/dsh-markdown-studio) [](./LICENSE) [](./package.json)
|
|
6
|
+
|
|
7
|
+
**Write clean Markdown. Copy publication-grade WeChat Official Account layouts in one click.**
|
|
8
|
+
|
|
9
|
+
`dsh-markdown-studio` (Markdown Studio) is a local-first Markdown writing and WeChat Official Account typesetting studio built natively for DeepSeek Harness. Write standard 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, optionally 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 — **no sign-in, zero telemetry, zero cloud lock-in** (only passages you explicitly submit to a Writing Skill are processed by your configured host model).
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
**Option 1: Install directly inside DeepSeek Harness (recommended, no terminal or restart needed)**
|
|
14
|
+
|
|
15
|
+
Open **Plugins** in the left sidebar, click **Add plugin**, enter `dsh-markdown-studio`, and choose **Enable now**. Then open **Markdown Studio** from the left sidebar.
|
|
16
|
+
|
|
17
|
+
**Option 2: Install via CLI**
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
dsh plugin --profile desktop add dsh-markdown-studio
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
To install from a local clone instead, run `npm ci && npm run build` and then `dsh plugin --profile desktop add link:.`. To upgrade later, run `dsh plugin --profile desktop add dsh-markdown-studio@latest`; to uninstall, run `dsh plugin --profile desktop remove dsh-markdown-studio`.
|
|
24
|
+
|
|
25
|
+
## See it in action
|
|
26
|
+
|
|
27
|
+
### Split-pane writing with live mobile and desktop preview
|
|
28
|
+
|
|
29
|
+
Write clean Markdown with `/` slash commands, Notion-style conflict-free shortcuts (`⌘/Ctrl + Shift + E` inline math, `⌘/Ctrl + Alt + 4` task list, `⌘/Ctrl + Alt + -` divider — full cheat sheet in **Settings → Help**), document outline jump, and find & replace. Switch between mobile card and desktop full-width previews with bidirectional scroll sync, then press `⌘/Ctrl + Enter` to copy for WeChat.
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
### 8 full-spectrum built-in themes and Custom CSS Workbench
|
|
34
|
+
|
|
35
|
+
Switch across 8 original editorial presets (**Classic, Gallery, Insight, Botanical, Noir Gold, Anthology, Briefing, Poster**) and 8 independent code-highlighting palettes. Click **New theme** to author, name, and manage multiple custom CSS themes in a dedicated left-pane CSS Workbench that extracts live color swatches into the **Theme presets** grid (or download and open the standalone [8-Theme Interactive Preview Gallery](./docs/theme-gallery.html) locally).
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
#### Real-device mobile WeChat previews across all 8 built-in themes
|
|
40
|
+
|
|
41
|
+
The exact same clean Markdown draft rendered across all 8 built-in editorial themes on a mobile WeChat reading screen (lead callouts, TL;DR headers, chapter badges, and code surfaces adapt automatically per theme):
|
|
42
|
+
|
|
43
|
+
<table>
|
|
44
|
+
<thead>
|
|
45
|
+
<tr>
|
|
46
|
+
<th width="25%" align="center">Classic · 经典</th>
|
|
47
|
+
<th width="25%" align="center">Gallery · 画廊</th>
|
|
48
|
+
<th width="25%" align="center">Insight · 新知</th>
|
|
49
|
+
<th width="25%" align="center">Botanical · 森系</th>
|
|
50
|
+
</tr>
|
|
51
|
+
</thead>
|
|
52
|
+
<tbody>
|
|
53
|
+
<tr>
|
|
54
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/classic.png" width="180" alt="Classic mobile preview" /></td>
|
|
55
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/gallery.png" width="180" alt="Gallery mobile preview" /></td>
|
|
56
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/tech.png" width="180" alt="Insight mobile preview" /></td>
|
|
57
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/warm.png" width="180" alt="Botanical mobile preview" /></td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td width="25%" align="center">Crisp blue accent<br /><code>01</code> overline badge</td>
|
|
61
|
+
<td width="25%" align="center">Museum stone paper<br />bold crown rule</td>
|
|
62
|
+
<td width="25%" align="center"><code>01 /</code> violet sections<br />deep-indigo code</td>
|
|
63
|
+
<td width="25%" align="center">Warm oat stationery<br /><code>●</code> dotted rule</td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<th width="25%" align="center">Noir Gold · 黑金</th>
|
|
67
|
+
<th width="25%" align="center">Anthology · 文集</th>
|
|
68
|
+
<th width="25%" align="center">Briefing · 简报</th>
|
|
69
|
+
<th width="25%" align="center">Poster · 海报</th>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr>
|
|
72
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/night.png" width="180" alt="Noir Gold mobile preview" /></td>
|
|
73
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/ink.png" width="180" alt="Anthology mobile preview" /></td>
|
|
74
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/ruby.png" width="180" alt="Briefing mobile preview" /></td>
|
|
75
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/poster.png" width="180" alt="Poster mobile preview" /></td>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr>
|
|
78
|
+
<td width="25%" align="center">Obsidian dark<br />champagne-gold chapters</td>
|
|
79
|
+
<td width="25%" align="center">Celadon bookleaf<br /><code>「」</code> chapter brackets</td>
|
|
80
|
+
<td width="25%" align="center">Crimson top rule<br /><code>[01]</code> square seal</td>
|
|
81
|
+
<td width="25%" align="center">Vivid yellow lead<br />hard-shadow cards</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</tbody>
|
|
84
|
+
</table>
|
|
85
|
+
|
|
86
|
+
### Native dark theme and WeChat night-reading preview
|
|
87
|
+
|
|
88
|
+
The studio automatically follows DeepSeek Harness light and dark themes. In dark mode, the preview simulates WeChat's night-reading appearance (including brightened math formulas and adapted diagrams) while keeping copied clipboard output in the clean authored light palette.
|
|
89
|
+
|
|
90
|
+

|
|
91
|
+
|
|
92
|
+
### Custom Writing Skills with inline red/green diff
|
|
93
|
+
|
|
94
|
+
Create or import standard `SKILL.md` Writing Skills from **More → Writing Skills** for your own house style, tightening, or headline polish (an open-source `Humanize` / `去 AI 味` preset is also included out of the box). Select any passage and press `⌘/Ctrl + J` or click the floating pill: edits stream from your configured host model into a word-level red/green inline diff (`Tab` to accept, `Esc` to reject) without affecting copied output until accepted.
|
|
95
|
+
|
|
96
|
+

|
|
97
|
+
|
|
98
|
+
### Distraction-free immersive writing
|
|
99
|
+
|
|
100
|
+
Focus on long-form writing in full-screen Immersive Write or Immersive Preview mode with a minimal floating mode switcher and live word/character counts; press `Esc` anytime to return to the split workbench.
|
|
101
|
+
|
|
102
|
+

|
|
103
|
+
|
|
104
|
+
### Searchable article library and `.zip` archives
|
|
105
|
+
|
|
106
|
+
Manage multiple drafts and a recycle bin with keyword-highlighted title and excerpt search, conflict-aware merge import, full-library `.zip` backups with local images included, and two-way local `.md` folder sync.
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
## Why `dsh-markdown-studio`
|
|
111
|
+
|
|
112
|
+
- **Zero host patches, fast startup**: Built on official DeepSeek Harness plugin APIs with a `2.1 KiB` gzipped core shell; the editor, math, and diagram engines load only when needed so everyday chats pay zero overhead.
|
|
113
|
+
- **What you preview is what pastes into WeChat**: Eight high-contrast editorial themes compile cleanly into self-contained inline styles, collect external links into bottom references, preserve code indentation, and keep dark preview isolated from light clipboard output.
|
|
114
|
+
- **100% local-first, your data stays yours**: Drafts, recycle bin entries, custom themes, and deduplicated local images remain on your machine. Unused images are cleaned up automatically on permanent deletion, linked files warn before overwriting external edits, and full `.zip` backups keep everything portable (see [storage and archive formats](./docs/schema.md)).
|
|
115
|
+
|
|
116
|
+
## Built-in themes and capabilities
|
|
117
|
+
|
|
118
|
+
| Category | Built-in capabilities | Details |
|
|
119
|
+
| :--- | :--- | :--- |
|
|
120
|
+
| **8 editorial themes** | `Classic`, `Gallery`, `Insight`, `Botanical`, `Noir Gold`, `Anthology`, `Briefing`, `Poster` | Full-spectrum presets spanning crisp blue, museum stone, violet explainer, warm oat stationery, obsidian gold, celadon bookleaf, crimson executive brief, and bold yellow poster, plus named custom CSS themes |
|
|
121
|
+
| **Code highlighting** | `Follow theme` (8 custom per-theme surfaces) + `GitHub Light/Dark`, `One Dark`, `Dracula`, `Nord`, `Solarized Light/Dark`, `Monokai` | Code blocks adapt live to each theme or switch to dedicated editor palettes, with full custom CSS override support |
|
|
122
|
+
| **Extended syntax** | `:::lead`, `:::tldr`, `:::pull`, `:::meta`, `:::sign`, auto figure captions, GFM tables, task lists, footnotes, `==highlight==`, `++underline++`, 5 callout types, `:::scroll` / `:::scroll-x`, TeX math, Mermaid | One-click insertion via the Format menu, `/` slash palette, and shortcuts (**Settings → Help** reference), with full English and Chinese UI & sample articles; raw HTML is escaped by default and diagrams render in an isolated sandbox |
|
|
123
|
+
| **Custom Writing Skills** | Create, import, and export standard `SKILL.md` skills (ships with open-source `Humanize` / `去 AI 味` preset) | Selection-triggered floating pill (`⌘/Ctrl + J`), word-level red/green inline diff, and Markdown syntax preservation guards |
|
|
124
|
+
| **Import and export** | One-click WeChat rich HTML / plain text copy, `.md`, standalone `.html`, single-article `.zip`, full-library `.zip` archive, local folder sync | Automatically adapts file export across desktop and browser environments with conflict-aware merge and bundled local assets |
|
|
125
|
+
|
|
126
|
+
## Documentation and license
|
|
127
|
+
|
|
128
|
+
- [Developer and architecture guide (English)](./docs/DEVELOPMENT.md) | [开发与架构文档(简体中文)](./docs/DEVELOPMENT.zh-CN.md) | [Interactive Theme Gallery](./docs/theme-gallery.html)
|
|
129
|
+
- [Reference docs index (Chinese)](./docs/README.md) | [Contributing guide](./CONTRIBUTING.md) | [Code of conduct](./CODE_OF_CONDUCT.md) | [Security policy](./SECURITY.md) | [Changelog](./CHANGELOG.md)
|
|
130
|
+
- Released under the [MIT License](./LICENSE). See [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md) and [THIRD_PARTY_LICENSES.txt](./THIRD_PARTY_LICENSES.txt) for third-party open-source notices.
|
package/README.md
CHANGED
|
@@ -1,3 +1,130 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-markdown-studio
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**简体中文** | [English](./README.en.md) | [开发与架构文档](./docs/DEVELOPMENT.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
[](https://github.com/Geekhyt/dsh-markdown-studio/actions/workflows/ci.yml) [](https://www.npmjs.com/package/dsh-markdown-studio) [](./LICENSE) [](./package.json)
|
|
6
|
+
|
|
7
|
+
**专注 Markdown 写作,公众号精美版式一键直出。**
|
|
8
|
+
|
|
9
|
+
`dsh-markdown-studio`(Markdown Studio)是运行在 DeepSeek Harness 中的本地优先写作与微信公众号排版工作台。左侧专注纯净 Markdown 创作,右侧实时预览手机与桌面版式;内置 8 套全光谱原创排版主题、独立自定义 CSS 工作台与可自定义的写作 Skill 行内对比润色,一键复制即可直接粘贴到微信公众号后台。文章、图片与自定义主题全部留在本机——**不登录、零遥测、零云端锁仓**(仅在主动触发写作 Skill 时通过宿主已配置的模型处理所选片段)。
|
|
10
|
+
|
|
11
|
+
## 快速开始
|
|
12
|
+
|
|
13
|
+
**方式一:客户端界面一键安装(推荐,免终端与重启)**
|
|
14
|
+
|
|
15
|
+
打开 DeepSeek Harness 左侧边栏的 **插件** 页面,点击 **添加插件**,输入 `dsh-markdown-studio` 并选择 **立即启用**,即可在左侧边栏打开 **Markdown Studio**。
|
|
16
|
+
|
|
17
|
+
**方式二:命令行安装**
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
dsh plugin --profile desktop add dsh-markdown-studio
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
如果是从源码仓库本地体验,克隆后运行 `npm ci && npm run build`,再执行 `dsh plugin --profile desktop add link:.` 即可。后续升级版本执行 `dsh plugin --profile desktop add dsh-markdown-studio@latest`,卸载可执行 `dsh plugin --profile desktop remove dsh-markdown-studio`。
|
|
24
|
+
|
|
25
|
+
## 场景预览
|
|
26
|
+
|
|
27
|
+
### 分栏写作与实时版式预览
|
|
28
|
+
|
|
29
|
+
左侧专注纯净 Markdown 语法,支持 `/` 斜杠命令面板、参考 Notion 习惯的无冲突快捷键(如 `⌘/Ctrl + Shift + E` 行内公式、`⌘/Ctrl + Alt + 4` 任务清单、`⌘/Ctrl + Alt + -` 分割线,完整速查见右侧「设置 → 帮助」)、大纲跳转与查找替换;右侧在手机卡片与桌面全宽之间即时切换并支持双向滚动同步,按 `⌘/Ctrl + Enter` 一键复制到公众号。
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
### 8 套全光谱内置主题与独立自定义 CSS 工作台
|
|
34
|
+
|
|
35
|
+
右侧设置抽屉内置 **经典、画廊、新知、森系、黑金、文集、简报、海报** 8 套原创主题及 8 套独立代码块配色;点击 **+ 新建主题** 可在左侧打开独立 CSS 工作台边改边看,保存后自动提取色彩缩略卡加入主题预设网格(也可下载 [8 套主题交互式预览画廊](./docs/theme-gallery.html) 后在本地浏览器打开,免安装体验)。
|
|
36
|
+
|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
#### 8 套内置主题手机端公众号真机效果
|
|
40
|
+
|
|
41
|
+
同一篇纯 Markdown 原稿在 8 套内置主题下的手机端阅读效果对比(导语、速览卡标题、章节编号与代码块表面均自动跟随主题切换):
|
|
42
|
+
|
|
43
|
+
<table>
|
|
44
|
+
<thead>
|
|
45
|
+
<tr>
|
|
46
|
+
<th width="25%" align="center">经典 · Classic</th>
|
|
47
|
+
<th width="25%" align="center">画廊 · Gallery</th>
|
|
48
|
+
<th width="25%" align="center">新知 · Insight</th>
|
|
49
|
+
<th width="25%" align="center">森系 · Botanical</th>
|
|
50
|
+
</tr>
|
|
51
|
+
</thead>
|
|
52
|
+
<tbody>
|
|
53
|
+
<tr>
|
|
54
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/classic.png" width="180" alt="经典主题手机端预览" /></td>
|
|
55
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/gallery.png" width="180" alt="画廊主题手机端预览" /></td>
|
|
56
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/tech.png" width="180" alt="新知主题手机端预览" /></td>
|
|
57
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/warm.png" width="180" alt="森系主题手机端预览" /></td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td width="25%" align="center">清爽白底蓝调<br /><code>01</code> 上置编号</td>
|
|
61
|
+
<td width="25%" align="center">美术馆石纸<br />粗黑冠线与展签</td>
|
|
62
|
+
<td width="25%" align="center"><code>01 /</code> 极光紫章题<br />深靛蓝代码卡</td>
|
|
63
|
+
<td width="25%" align="center">燕麦暖信纸<br /><code>●</code> 柿红虚线章题</td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<th width="25%" align="center">黑金 · Noir Gold</th>
|
|
67
|
+
<th width="25%" align="center">文集 · Anthology</th>
|
|
68
|
+
<th width="25%" align="center">简报 · Briefing</th>
|
|
69
|
+
<th width="25%" align="center">海报 · Poster</th>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr>
|
|
72
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/night.png" width="180" alt="黑金主题手机端预览" /></td>
|
|
73
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/ink.png" width="180" alt="文集主题手机端预览" /></td>
|
|
74
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/ruby.png" width="180" alt="简报主题手机端预览" /></td>
|
|
75
|
+
<td width="25%" align="center"><img src="assets/screenshots/themes/poster.png" width="180" alt="海报主题手机端预览" /></td>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr>
|
|
78
|
+
<td width="25%" align="center">曜石暗底画布<br />香槟金片头章题</td>
|
|
79
|
+
<td width="25%" align="center">天青宋刻书页<br /><code>「」</code> 括号章题</td>
|
|
80
|
+
<td width="25%" align="center">红顶线商业简报<br /><code>[01]</code> 红底方章</td>
|
|
81
|
+
<td width="25%" align="center">明黄贴纸导语<br />硬阴影速览卡片</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</tbody>
|
|
84
|
+
</table>
|
|
85
|
+
|
|
86
|
+
### 原生深色跟随与微信夜间阅读仿真
|
|
87
|
+
|
|
88
|
+
界面自动适配 DeepSeek Harness 浅色与深色主题。处于深色模式时,预览区自动模拟微信夜间阅读效果(含公式提亮与流程图适配),而复制到剪贴板的富文本始终保持干净的原始浅色排版。
|
|
89
|
+
|
|
90
|
+

|
|
91
|
+
|
|
92
|
+
### 支持自定义写作 Skill 与行内对比润色
|
|
93
|
+
|
|
94
|
+
在「更多 → 写作 Skill 管理」可自由新建或导入标准 `SKILL.md` 自定义改写规则(如品牌文风统一、结构精简、标题打磨等,亦随包附带开源 `去 AI 味` 规则开箱即用)。选中任意段落按 `⌘/Ctrl + J` 或点击浮动胶囊,即可复用宿主已配置模型流式生成词级红绿行内对比,按 `Tab` 采纳、`Esc` 拒绝,未采纳前绝不影响复制成稿。
|
|
95
|
+
|
|
96
|
+

|
|
97
|
+
|
|
98
|
+
### 无干扰沉浸写作与实时字数角标
|
|
99
|
+
|
|
100
|
+
需要专注长文构思时,一键进入全屏沉浸写作或沉浸预览模式,右上角保留轻量切换胶囊,左下角实时统计字数与字符数,按 `Esc` 随时返回分栏工作台。
|
|
101
|
+
|
|
102
|
+

|
|
103
|
+
|
|
104
|
+
### 多文章库、全文高亮检索与 `.zip` 完整归档
|
|
105
|
+
|
|
106
|
+
内置多文章库与回收站,支持标题与正文双高亮搜索、冲突感知合并导入、含本地图片素材的 `.zip` 全量备份,以及本地 `.md` 文件夹双向同步。
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
## 为什么选择 `dsh-markdown-studio`
|
|
111
|
+
|
|
112
|
+
- **官方接口实现,按需加载更轻快**:基于 DeepSeek Harness 官方插件接口构建,无任何宿主魔改;首屏核心包仅 `2.1 KiB`(gzip),编辑器、公式与流程图引擎仅在实际使用时按需加载,日常对话零负担。
|
|
113
|
+
- **所见即所得,粘贴公众号不走样**:8 套高对比度原创排版体系自动内联全部样式,外链自动收拢为文末参考资料,代码缩进完整保留,深色预览与浅色剪贴板严格隔离。
|
|
114
|
+
- **完全本地优先,数据主权归你**:草稿、回收站、自定义主题与自动去重的本地图片全部留在本机;彻底删除草稿时自动回收未引用图片,本地关联文件支持外部修改冲突提醒,并可随时导出完整 `.zip` 归档(详情见 [数据格式与容量](./docs/schema.md))。
|
|
115
|
+
|
|
116
|
+
## 内置主题与能力目录
|
|
117
|
+
|
|
118
|
+
| 维度 | 内置能力 | 说明 |
|
|
119
|
+
| :--- | :--- | :--- |
|
|
120
|
+
| **8 套内置主题** | `经典`、`画廊`、`新知`、`森系`、`黑金`、`文集`、`简报`、`海报` | 覆盖白底蓝调、石版画廊、极光科普、草木信笺、曜石流金、宋刻天青、红白简报与明黄海报全色域,支持多套命名自定义 CSS 主题 |
|
|
121
|
+
| **代码块高亮** | `跟随主题`(8 套独立主题定制表面)+ `GitHub Light/Dark`、`One Dark`、`Dracula`、`Nord`、`Solarized Light/Dark`、`Monokai` | 代码块配色跟随当前主题实时联动或自由切换独立配色,并支持自定义 CSS 覆盖 |
|
|
122
|
+
| **扩展语法** | `:::lead` 导语、`:::tldr` 速览卡、`:::pull` 金句、`:::meta` 眉题、`:::sign` 落款、单图自动图注、GFM 表格、任务清单、脚注、`==高亮==`、`++下划线++`、5 类提示块、`:::scroll` / `:::scroll-x`、TeX 公式、Mermaid | 顶栏「格式」菜单、`/` 斜杠面板与快捷键一键插入(右侧「设置 → 帮助」附完整说明),支持完整中英双语界面与示例文章;默认安全转义原始 HTML 并在隔离环境中渲染图表 |
|
|
123
|
+
| **自定义写作 Skill** | 支持新建与导入导出标准 `SKILL.md` 自定义规则(附带开源 `去 AI 味` 预设) | 选中即浮现、快捷键 `⌘/Ctrl + J` 触发、词级红绿行内对比与 Markdown 语法保护 |
|
|
124
|
+
| **导入与导出** | 一键复制公众号富文本 / 纯文本、`.md`、独立 `.html`、单篇 `.zip` 文章包、整库 `.zip` 归档、本地文件夹同步 | 自动适配桌面与浏览器文件导出,支持冲突感知合并与完整图片素材打包 |
|
|
125
|
+
|
|
126
|
+
## 文档与许可
|
|
127
|
+
|
|
128
|
+
- [开发与架构文档(简体中文)](./docs/DEVELOPMENT.zh-CN.md) | [Developer and architecture guide (English)](./docs/DEVELOPMENT.md) | [8 套主题静态画廊](./docs/theme-gallery.html)
|
|
129
|
+
- [专题文档索引](./docs/README.md) | [贡献指南](./CONTRIBUTING.md) | [行为准则](./CODE_OF_CONDUCT.md) | [安全策略](./SECURITY.md) | [更新日志](./CHANGELOG.md)
|
|
130
|
+
- 基于 [MIT License](./LICENSE) 开源,第三方开源依赖声明见 [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md) 与 [THIRD_PARTY_LICENSES.txt](./THIRD_PARTY_LICENSES.txt)。
|