fix(inbox): 支持安全点击 Markdown 链接 - #26
Merged
Merged
Conversation
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.
能力变化
href,渲染为可点击且可访问的原生 link。Linking.openURL;系统拒绝时显示通用失败提示。mailto:、tel:和 custom scheme。linkify: false、超过 600 token 降级纯文本及 Markdown 图片独立加载策略不变。权限与平台差异
canOpenURL;远程phone/apps契约不变。安全与隐私
验证证据
在仓库锁定的 Node 22.23.1 / pnpm 11.21.0 下:
pnpm typecheck:通过pnpm lint:通过pnpm test:83 个 suites、398 项测试全部通过llmdoc validate:通过,仅有既有文档长度 warningpnpm verify:文档、release metadata、App 配置、图标、原生模块、SDK device 入口、secrets、licenses 和依赖缓解检查通过;在verify:expo因仓库现有 Expo 补丁版本低于推荐版本而停止,与本次改动无关未执行 Android/iOS 原生构建或双端真机点击验证;本次没有原生代码或权限配置变更。
回滚方式
回滚此 PR 即可恢复为只渲染链接文字、不提供系统 handoff 的行为;没有数据迁移、schema 变更或新增权限需要清理。
文档更新
README.md的当前能力说明。