Repository navigation
Conversation
🦋 Changeset detectedLatest commit: d3573e1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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/milkdown
@cherry-markdown/miniprogram
commit: |
Collaborator
🌐 Playground 预览
|
Contributor
|
Size Change: +80.1 kB (+0.82%) Total Size: 9.88 MB 📦 View Changed
ℹ️ View Unchanged
|
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.
Milkdown 统一通过
cherryMilkdown()挂载到 Shadow DOM,自动加载 Cherry 发布的样式和图标字体。接入方通过公开配置、CSS 变量和部件调整编辑器。变更
::part(),支持按实例调整正文、浮层和图表容器。editor-dom.ts统一所属根节点的焦点、选区方向、源码区选区写入和拖拽命中测试,限制操作作用于当前控件;浮层外部事件使用 composedPath 判断归属。createEChartsRenderers({ transformOption }),代码块和表格图表可以覆盖预览数据。完整重绘重新应用变换,保存原始 Markdown;后续变换失败时保留最后有效图表,并通过编辑器onError(error, 'render')通知业务。接入变更
直接调用
cherryMilkdown(),移除旧的@cherry-markdown/milkdown/style.css导入。engineOptions只开放callback.urlProcessor和callback.beforeImageMounted。高级 Cherry 渲染配置通过业务创建的engine接入,且与engineOptions互斥。不支持的主题会明确报错。配置范围与接入说明