fix(ui): 修复 Markdown 弹窗中超链接点击无反应#3423
Conversation
审阅者指南(在小型 PR 上默认折叠)审阅者指南在 Markdown 消息对话框中添加一个命令绑定,使 Markdig.Wpf 的超链接命令通过打开关联 URL 来处理,从而修复所有基于 Markdown 的弹窗中无响应的链接问题。 处理 Markdown 超链接点击的序列图sequenceDiagram
actor User
participant MyMsgMarkdown
participant MarkdigWpf
participant ModBase
User->>MarkdigWpf: Click hyperlink
MarkdigWpf->>MyMsgMarkdown: Commands.Hyperlink (url)
MyMsgMarkdown->>MyMsgMarkdown: _OpenHyperlink(e)
MyMsgMarkdown->>ModBase: OpenWebsite(url)
文件级变更
与关联 Issue 的对照评估
可能关联的其他 Issue
提示与命令与 Sourcery 交互
自定义你的体验访问你的 控制面板,可以:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's GuideAdds a command binding in the Markdown message dialog so that Markdig.Wpf hyperlink commands are handled by opening the associated URL, fixing non-responsive links in all Markdown-based popups. Sequence diagram for handling Markdown hyperlink clickssequenceDiagram
actor User
participant MyMsgMarkdown
participant MarkdigWpf
participant ModBase
User->>MarkdigWpf: Click hyperlink
MarkdigWpf->>MyMsgMarkdown: Commands.Hyperlink (url)
MyMsgMarkdown->>MyMsgMarkdown: _OpenHyperlink(e)
MyMsgMarkdown->>ModBase: OpenWebsite(url)
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
嗨,我已经审查了你的修改,看起来很棒!
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据这些反馈来改进你的评审。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 75316e4feb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Markdig.Wpf 的超链接点击会发出 Markdig.Wpf.Commands.Hyperlink 路由命令,需由宿主绑定处理才会导航;MyMsgMarkdown 从未绑定该命令,导致更新日志等Markdown 弹窗中的蓝色链接渲染正常但点击无任何反应。
在 MyMsgMarkdown 构造中为该命令添加 CommandBinding,处理器取命令参数(URL)交由 ModBase.OpenWebsite 打开。一处修复覆盖所有 Markdown 弹窗(更新日志、反馈详情、设置-更新的更新日志详情)。
resolves #3419
本PR的提交信息生成由Claude Code Opus 4.8生成,由Opus 4.8对代码进行了审查。
Summary by Sourcery
Bug Fixes:
Original summary in English
Summary by Sourcery
Bug Fixes:
Original summary in English
Summary by Sourcery
Bug Fixes:
Original summary in English
Summary by Sourcery
Bug Fixes: