This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
MarkdownTextBlock throws an ArgumentException when using a markdown link with a superscript link as text #2806
Labels
bug 🐛
An unexpected issue that highlights incorrect behavior
controls 🎛️
markdown 📑
Issues related to Markdown
no-recent-activity 📉
Open Issues that require attention
I'm submitting a...
Current behavior
Trying to render a markdown like this throws an
ArgumentException
:The crash happens at the last line,
localContext.InlineCollection.Add(link);
, from this method: https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/a722f171cac7959d8fb39d732c5951018a2e8c07/Microsoft.Toolkit.Uwp.UI.Controls/MarkdownTextBlock/Render/MarkdownRenderer.Inlines.cs#L188This is probably related in some way to #2802
Expected behavior
The markdown should be correctly rendered as a superscript link.
Minimal reproduction of the problem with instructions
Write the following text in a
MarkdownTextBlock
control:Environment
The text was updated successfully, but these errors were encountered: