Skip to content

MarkdownTextBlock throw an exception while handling link with space link text #3120

@Tlaster

Description

@Tlaster

Describe the bug

Try rendering markdown like this

[ ](https://www.google.com/)

And the MarkdownTextBlock throw an exception

Steps to Reproduce

Steps to reproduce the behavior:

  1. Open Sample App
  2. Open MarkDownTextBlock sample
  3. Add the following markdown to the textbox at the top:
[ ](https://www.google.com/)
  1. Sample App crash

Expected behavior

MarkdownTextBlock render a space

Environment

NuGet Package(s): 
6.0.0
Package Version(s): 
6.0.0

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [x] May 2019 Update (18362)
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [x] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [x] 2019 (version: 16.4.4) 
- [ ] 2019 Preview (version: )

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛An unexpected issue that highlights incorrect behaviormarkdown 📑Issues related to Markdown

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions