Repository navigation
Conversation
🦋 Changeset detectedLatest commit: dd10754 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 |
Contributor
|
Size Change: +232 kB (+2.43%) Total Size: 9.8 MB 📦 View Changed
ℹ️ View Unchanged
|
Collaborator
🔌 VSCode Plugin 构建产物
|
Collaborator
Collaborator
🌐 Playground 预览
|
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.
变更
cherry-markdown/dist/cherry-markdown.engine.core.node.js,使纯 Node.js 环境可以通过 ESM 渲染 Markdown。Sanitizer.node.js,由运行环境加载 jsdom。保留现有浏览器 ESM 和 UMD 入口。依赖
此 PR 基于 #1963 的分支,确保纯 Node.js 入口启用时使用 jsdom 20.0.3。#1963 合并后可将本 PR 的目标分支改为
dev。验证
使用
npm pack打包并安装到独立项目,在 Node.js 22.13.0 和 24.15.0 中验证无浏览器全局变量时的 Markdown 渲染及 HTML 净化。Milkdown 类型检查的 TS2339 已在
dev复现,留待单独处理。