Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
cdc1b11
fix(ai-demo): 修复不必要换行符显示在页面 (#1540)
RSS1102 Dec 5, 2025
7e36e89
Revise streaming rendering terminology in README
sunsonliu Dec 5, 2025
fc55588
Add stream rendering section to README.CN.md
sunsonliu Dec 5, 2025
8d4fa9b
feat: 添加 CNB 同步配置和工作流 (#1542)
RSS1102 Dec 5, 2025
a2967c3
fix: 修复 .cnb.yml 中的 GitHub 令牌变量名称 (#1543)
RSS1102 Dec 5, 2025
b261e16
chore: github 分支删除同步删除cnb 分支 (#1550)
liweijie0812 Dec 10, 2025
a275692
fix: image syntax compatibility (#1555)
lyngai Dec 11, 2025
08ef14b
chore(cnb): 开发环境 (#1544)
liweijie0812 Dec 11, 2025
e28d016
ci(publish): use OIDC publish to npm (#1557)
liweijie0812 Dec 11, 2025
0924e11
ci(pr-pkg-new): 短链接和更多安装方式 (#1560)
liweijie0812 Dec 11, 2025
629053f
fix(deps): 升级 vite 修复 CVE-2025-62522 (#1563)
liweijie0812 Dec 12, 2025
0b0b13e
ci: reduce dist size with `compressed-size action` (#1564)
liweijie0812 Dec 12, 2025
bc917e2
feat(client): 优化客户端功能,增加图表、公式、拼音等功能的支持 (#1548)
sunsonliu Dec 14, 2025
3c13829
refactor(client): 移除窗口菜单和国际化结构,优化系统托盘功能 (#1566)
RSS1102 Dec 14, 2025
c15f54f
style: 增加主题和代码块主题的图标 (#1547)
sunsonliu Dec 17, 2025
6291853
chore(client): upgrade pinyin@4.0.0 (#1569)
RSS1102 Dec 17, 2025
b559a2a
chore: 将 release build 的 Node 版本设置为 `18.x` (#1559)
RSS1102 Dec 17, 2025
f5e01e9
fix: #1570 修复点击脚注列表里的标号时有js报错的问题 (#1573)
sunsonliu Dec 19, 2025
a685fa7
ci: fix publish npm (#1574)
liweijie0812 Dec 22, 2025
68017a4
refactor(vscodePlugin): migrate build tool from `webpack` to `rspack`…
RSS1102 Dec 26, 2025
755dd8c
fix: 优化拖拽预览区宽度的逻辑,使其更稳定 (#1580)
sunsonliu Dec 29, 2025
d2d7d6b
chore(vscodePlugin): 删除不再使用的测试资源文件 (#1582)
RSS1102 Dec 30, 2025
9645655
ci: 优化预览 client 逻辑 (#1583)
RSS1102 Jan 3, 2026
f329e7d
refactor(client): 增强文件管理功能,优化上下文菜单和最近文件处理逻辑 (#1584)
RSS1102 Jan 3, 2026
5d2d0be
fix: 修复表格同一个单元格内无法连续输入\|的问题 (#1588)
sunsonliu Jan 5, 2026
710f27b
test(AutoLink): 完善测试案例 (#1558)
liweijie0812 Jan 7, 2026
61598e3
ci(client): 优化客户端预览构建工作流 (#1589)
RSS1102 Jan 8, 2026
e069033
feat(sidebar): 添加侧边栏列表样式和动态高度支持 (#1587)
RSS1102 Jan 8, 2026
2478d68
fix: 移除工具栏高度动态更新逻辑,简化任务栏高度变量管理 (#1585)
Seeridia Jan 8, 2026
9778b41
fix: 修复 demo 中 pinyin 转换失效的问题 (#1607)
RSS1102 Jan 23, 2026
1e8308b
fix: 将截图导出格式从 JPEG 改为 PNG (#1609)
RSS1102 Jan 26, 2026
c658115
fix: #1610 带 ~ 的超链接,引用显示后,点击的超链接变成了 ~T (#1611)
sunsonliu Jan 28, 2026
3d4e6bc
fix: #1593 首次粘贴html内容时,cherry会默认把html转成Markdown,但提示的却是TEXT (#1612)
sunsonliu Jan 28, 2026
0357b2d
feat: add stream package (#1613)
novlan1 Jan 29, 2026
3110c04
feat: #1595 onPaste粘贴的回调函数支持异步回调 (#1614)
sunsonliu Jan 30, 2026
e24d7cd
feat: #1600 提高超大文档的性能 (#1615)
sunsonliu Feb 3, 2026
b5dbc94
feat: 优化右侧悬浮目录的更新机制 (#1620)
sunsonliu Feb 6, 2026
6cf9b7d
feat: 支持 `onClickPreview` 返回 `false` 阻止后续处理 (#1625)
RSS1102 Feb 25, 2026
d624871
feat: #1621 增加和丰富统计信息 (#1628)
sunsonliu Feb 28, 2026
033ca64
fix: #1622 表格左右滚动影响到图表的问题 (#1629)
sunsonliu Feb 28, 2026
77815d1
feat: #1632 表格中也支持段落公式,段落公式按行内公式渲染 (#1634)
sunsonliu Mar 4, 2026
253d68f
fix: 恢复扩展 PrismJS 支持的语言列表 (#1637)
RSS1102 Mar 4, 2026
98d0f88
feat: #1549 流式渲染场景,优化代码块自动闭合的时机并优化行内公式在表格里也可以自动闭合 (#1640)
sunsonliu Mar 5, 2026
4ce389f
chore: 补充directory到 package.json (#1638)
liweijie0812 Mar 5, 2026
2420119
feat: 增加 SyntaxBase 核心类的单元测试 (#1636)
liweijie0812 Mar 5, 2026
78819de
feat: 新增 HookCenter 单元测试,覆盖构造函数、hook 注册、自定义 hook 处理等核心功能 (#1635)
liweijie0812 Mar 5, 2026
4a6ef34
ci: 移除 PR 预览构建的分支限制 (#1643)
RSS1102 Mar 7, 2026
8b190e9
feat(mermaid): mermaid diagram size editing and alignment (#1641)
Jie-echo Mar 9, 2026
9965e48
fix: #1331 当使用katex渲染公式时,预览区公式操作丢失了 (#1646)
sunsonliu Mar 12, 2026
46c8ba3
test: 提升 Suggester.js 测试覆盖率
liweijie0812 Mar 12, 2026
8dcfdea
test: 修复 Suggester 类基础功能测试
liweijie0812 Mar 12, 2026
c1957e3
fix: read formula source from rendered math nodes (#1648)
Seeridia Mar 13, 2026
dbddcc0
refactor: 优化 rollup 构建并增强 stream 模式预览区交互功能 (#1653)
RSS1102 Mar 20, 2026
233834d
feat: 新增echarts代码块插件,支持直接渲染echarts (#1656)
sunsonliu Mar 24, 2026
1c2b4ea
feat: 优化表格图表刷新机制,更新demo文档 (#1658)
sunsonliu Mar 24, 2026
ba77f20
fix: 1、优化demo 的菜单配置;2、字数统计增加起始状态 (#1659)
sunsonliu Mar 24, 2026
8dd9d15
fix: upgrade prismjs to 1.30.0 to fix bash backslash spaces issue
hobostay Mar 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[registries.crates-io]
protocol = "sparse"

[source.crates-io]
replace-with = "rsproxy-sparse"


[source.rsproxy-sparse]
registry = "sparse+https://rsproxy.cn/index/"
5 changes: 5 additions & 0 deletions .changeset/breezy-bugs-say.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: 恢复扩展 PrismJS 支持的语言列表
5 changes: 5 additions & 0 deletions .changeset/cool-pumas-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: #1610 带 ~ 的超链接,引用显示后,点击的超链接变成了 ~T
5 changes: 5 additions & 0 deletions .changeset/cool-rooms-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: #1549 流式渲染场景,优化代码块自动闭合的时机并优化行内公式在表格里也可以自动闭合
5 changes: 5 additions & 0 deletions .changeset/curvy-words-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: #1593 首次粘贴html内容时,cherry会默认把html转成Markdown,但提示的却是TEXT
5 changes: 5 additions & 0 deletions .changeset/dry-waves-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: #1331 当使用katex渲染公式时,预览区公式操作丢失了
5 changes: 5 additions & 0 deletions .changeset/eight-jars-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: 优化右侧悬浮目录的更新机制
5 changes: 5 additions & 0 deletions .changeset/fancy-glasses-send.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: #1632 表格中也支持段落公式,段落公式按行内公式渲染
5 changes: 5 additions & 0 deletions .changeset/green-cameras-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: 从渲染后的公式节点读取源码,避免公式工具条复制时出现正则误匹配
5 changes: 5 additions & 0 deletions .changeset/hungry-brooms-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: 将截图导出格式从 JPEG 改为 PNG
5 changes: 5 additions & 0 deletions .changeset/hungry-socks-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: #1570 修复点击脚注列表里的标号时有js报错的问题
5 changes: 5 additions & 0 deletions .changeset/kind-eagles-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cherry-markdown/client": minor
---

feat: 优化客户端功能,增加图表、公式、拼音等功能的支持
5 changes: 5 additions & 0 deletions .changeset/little-cougars-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: #1600 提高超大文档的性能
7 changes: 7 additions & 0 deletions .changeset/loud-carrots-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'cherry-markdown': patch
'@cherry-markdown/client': patch
'cherry-markdown-vscode-plugin': patch
---

chore:`@types/node` 升级为 `@20.10.6`
5 changes: 5 additions & 0 deletions .changeset/loud-keys-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: 优化表格图表刷新机制,更新demo文档
9 changes: 9 additions & 0 deletions .changeset/mermaid-size-alignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'cherry-markdown': patch
---

feat(mermaid): 支持 mermaid 图表尺寸编辑和对齐

- 新增 mermaid 图表尺寸拖拽调整功能
- 支持 mermaid 图表对齐方式设置(左对齐、居中、右对齐、左浮动、右浮动)

5 changes: 5 additions & 0 deletions .changeset/odd-rivers-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: onPaste粘贴的回调函数支持异步回调 #1595
5 changes: 5 additions & 0 deletions .changeset/plain-laws-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: #1621 增加和丰富统计信息
5 changes: 5 additions & 0 deletions .changeset/public-places-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: 新增echarts代码块插件,支持直接渲染echarts
5 changes: 5 additions & 0 deletions .changeset/rare-files-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

chore: 将 release build 的 Node 版本设置为 `18.x`
5 changes: 5 additions & 0 deletions .changeset/red-donuts-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: #1622 表格左右滚动影响到图表的问题
5 changes: 5 additions & 0 deletions .changeset/rich-facts-stay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: 优化拖拽预览区宽度的逻辑,使其更稳定
5 changes: 5 additions & 0 deletions .changeset/shaky-impalas-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

style: 增加主题和代码块主题的图标
5 changes: 5 additions & 0 deletions .changeset/short-pears-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown-vscode-plugin': minor
---

refactor(vscodePlugin): 将构建工具从 webpack 迁移到 rspack
5 changes: 5 additions & 0 deletions .changeset/small-ghosts-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: 修复表格同一个单元格内无法连续输入\|的问题
5 changes: 5 additions & 0 deletions .changeset/sour-moons-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cherry-markdown": patch
---

fix: 移除工具栏高度动态更新逻辑,简化任务栏高度变量管理
5 changes: 5 additions & 0 deletions .changeset/tall-pots-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cherry-markdown": patch
---

feat(sidebar): 添加侧边栏列表样式和动态高度支持
5 changes: 5 additions & 0 deletions .changeset/tiny-items-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cherry-markdown": patch
---

fix: image syntax compatibility, Fixes #1554
5 changes: 5 additions & 0 deletions .changeset/upset-games-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

fix: 1、优化demo 的菜单配置;2、字数统计增加起始状态
5 changes: 5 additions & 0 deletions .changeset/violet-tires-stick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'cherry-markdown': patch
---

feat: 支持 `onClickPreview` 返回 `false` 阻止后续处理
8 changes: 8 additions & 0 deletions .changeset/wise-lemons-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'cherry-markdown': minor
---

refactor: 优化构建配置并增强 stream 模式
- feat(editor): 重构 `codeMirror· 模块加载方式为依赖注入,提升架构灵活性,stream 模式下不加载 `codeMirror`
- refactor(build): 优化构建配置,仅支持 UMD/ESM 模式
- fix(xss): 修复 XSS 安全漏洞
30 changes: 30 additions & 0 deletions .cnb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .cnb.yml
"**":
push:
- imports:
- https://cnb.cool/tencent/cherry-markdown/cherry-markdown-secret/-/blob/main/secret.yml
stages:
# cnb 同步代码到 github 仓库 https://cnb.cool/cnb/plugins/tencentcom/git-sync#%E4%BB%8E-cnb-%E5%90%8C%E6%AD%A5%E5%88%B0-github
- name: sync to github
image: tencentcom/git-sync
settings:
target_url: https://github.com/Tencent/cherry-markdown.git
auth_type: https
username: ${CHERRY_MARKDOWN_USERNAME}
password: ${CHERRY_MARKDOWN_GITHUB_TOKEN}
insecure_skip_verify: true
timeout: 300
$:
vscode:
- docker:
image: docker.cnb.cool/tencent/cherry-markdown/cherry-markdown
# build: .cnb/Dockerfile
volumes:
- node_modules
services:
- vscode
- docker
stages:
- name: install dependencies
script:
- yarn install
23 changes: 23 additions & 0 deletions .cnb/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:18

RUN sed -i 's@deb.debian.org@mirrors.cloud.tencent.com@g' /etc/apt/sources.list.d/debian.sources

# 安装 ssh 服务,用于支持 VSCode 等客户端通过 Remote-SSH 访问开发环境
RUN apt-get update && apt-get install -y wget unzip openssh-server

RUN curl -fsSL https://code-server.dev/install.sh | sh \
&& code-server --install-extension cnbcool.cnb-welcome \
&& code-server --install-extension redhat.vscode-yaml \
&& code-server --install-extension dbaeumer.vscode-eslint \
&& code-server --install-extension esbenp.prettier-vscode \
&& code-server --install-extension waderyan.gitblame \
&& code-server --install-extension mhutchie.git-graph \
&& code-server --install-extension donjayamanne.githistory \
&& code-server --install-extension vitest.explorer \
&& code-server --install-extension tencent-cloud.coding-copilot \
&& echo done


ENV LANG=C.UTF-8
ENV LANGUAGE=C.UTF-8

2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ src/libs/*.js
example-applications/**
examples/**
docs/**
packages/cherry-markdown/src/libs/*
packages/cherry-markdown/src/libs/*.js
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: .node-version
registry-url: https://registry.npmjs.org/
cache: yarn

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pr-compressed-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Compressed Size

on:
pull_request:
types: [opened, synchronize]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: preactjs/compressed-size-action@v2
with:
pattern: './packages/cherry-markdown/dist/**/*.{js,css,d.ts}'
8 changes: 6 additions & 2 deletions .github/workflows/pr_merge_cherry-markdown_npm-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,21 @@ jobs:

EOF

- name: Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version-file: .node-version
registry-url: https://registry.npmjs.org/
cache: yarn

- name: Install and build
working-directory: ./packages/cherry-markdown
run: yarn install && yarn build

- uses: actions/setup-node@v4
with:
node-version: 24

- name: npm publish
working-directory: ./packages/cherry-markdown
run: npm publish --tag latest
Expand Down
Loading