Hyperlinks not working? #688

Closed
opened 2026-01-29 14:43:01 +00:00 by claunia · 4 comments
Owner

Originally created by @stigzler on GitHub (Jul 11, 2024).

Firstly, fab lib! Secondly, I'm missing something really obvious. All rendering fine, but when I click a hyperlink, nothing happens. My MD xaml:

<md:MarkdownViewer Markdown="{Binding SelectedIssueViewModel.Body}" Style="{StaticResource MarkdownViewer}"/>

Style just an adaptation (just color changes) of the standard one provided by markdig.

I also tried adding:

Hyperlink.RequestNavigate="MarkdownViewer_RequestNavigate"

but the event never fires.

SelectedIssueViewModel.Body is just a text property.

What am I missing?

Originally created by @stigzler on GitHub (Jul 11, 2024). Firstly, fab lib! Secondly, I'm missing something really obvious. All rendering fine, but when I click a hyperlink, nothing happens. My MD xaml: ```xaml <md:MarkdownViewer Markdown="{Binding SelectedIssueViewModel.Body}" Style="{StaticResource MarkdownViewer}"/> ``` Style just an adaptation (just color changes) of the standard one provided by markdig. I also tried adding: ```xaml Hyperlink.RequestNavigate="MarkdownViewer_RequestNavigate" ``` but the event never fires. SelectedIssueViewModel.Body is just a text property. What am I missing?
claunia added the question label 2026-01-29 14:43:01 +00:00
Author
Owner

@xoofx commented on GitHub (Jul 13, 2024):

Markdig does not provide any direct support for XAML, so this has to be reported to the correct repository.

@xoofx commented on GitHub (Jul 13, 2024): Markdig does not provide any direct support for XAML, so this has to be reported to the correct repository.
Author
Owner

@stigzler commented on GitHub (Jul 16, 2024):

Thanks for the reply - where would I find the correct repository?

@stigzler commented on GitHub (Jul 16, 2024): Thanks for the reply - where would I find the correct repository?
Author
Owner

@xoofx commented on GitHub (Jul 16, 2024):

where would I find the correct repository?

I don't know, you have added likely a NuGet package to your project to have that support, so I would start from there. There is no MarkdownViewer class in this repository.

@xoofx commented on GitHub (Jul 16, 2024): > where would I find the correct repository? I don't know, you have added likely a NuGet package to your project to have that support, so I would start from there. There is no `MarkdownViewer` class in this repository.
Author
Owner

@stigzler commented on GitHub (Jul 17, 2024):

My apologies. It was markdig.wpf (here). Will post over there.

@stigzler commented on GitHub (Jul 17, 2024): My apologies. It was markdig.wpf ([here](https://github.com/Kryptos-FR/markdig.wpf)). Will post over there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#688