Conversation
作为多包拆分的第一步,新增 @cherry-markdown/engine 工作区包, 承载 Markdown 解析、HTML 生成、Hook 机制与 Node.js 渲染能力, 与 CodeMirror/工具栏/编辑器 UI 解耦,独立构建、独立测试。 Ref #6
- 导出引擎核心类:Engine、SyntaxHookBase、ParagraphBase、HookCenter、hooksConfig、HOOKS_TYPE_LIST、createSyntaxHook - 导出全部 37 个内置语法 Hook(Header/Table/List/CodeBlock 等) - 导出运行时工具:Logger、Sanitizer、UrlCache、urlProcessorProxy、defaultConfig - 更新 README 使用文档,新增 changeset
🦋 Changeset detectedLatest commit: 1ede232 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
cherry-markdown
@cherry-markdown/miniprogram
commit: |
Contributor
|
Size Change: +2.59 MB (+37.41%) 🚨 Total Size: 9.5 MB 📦 View Changed
ℹ️ View Unchanged
|
Collaborator
🔌 VSCode Plugin 构建产物
|
Collaborator
Collaborator
🌐 Playground 预览 |
# Conflicts: # packages/cherry-markdown/src/core/hooks/CommentReference.js
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue
变更说明
@cherry-markdown/engine单一源码,并将内部core语义重命名为syntax。@cherry-markdown/preview、@cherry-markdown/stream与@cherry-markdown/milkdown组合包,明确依赖方向,移除 Stream/Preview 对 CodeMirror 特殊裁剪逻辑的依赖。cherry-markdown包继续作为完整编辑器组合包;0.x 历史core / engine / engine.core / stream构建入口改为完整转发,保留旧导出、UMD 行为与插件差异。【new】标识的/new-engine.html、/new-preview.html、/new-stream.html、/new-milkdown.html路由。兼容性
验证
npm packverification passednew-Demo 路由、标识、Vite alias 与浏览器入口 verification passedgit diff --checkpassed说明
这是架构重构 Draft PR,建议重点评审依赖边界、0.x 兼容契约和 1.0 删除点;CI 结果以 GitHub 实际运行状态为准。