CommunityToolkit/WindowsCommunityToolkit
在 GitHub 查看Markdown parser: incorrect parsing of inline italics
Open
#3,549 建立於 2020年10月29日
bug :bug:help wantedmarkdown 📑
倉庫指標
- Star
- (5,708 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
Describe the bug
Underscore characters placed inside a word without spaces around them (e.g. x_y_z) are treated as opening/closing an italic span. This does not appear consistent with the commonmark standard.
- Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:
Steps to Reproduce
- Can this be reproduced in the Sample App?
- Open sample app
- Open MarkDownTextBlock sample
- Add the following markdown to the textbox at the top:
x_y_z
Expected behavior
The underscores should be rendered. None of the text should be italicised.
Actual behaviour
The underscores are not rendered, and the 'y' character is italicised.
Environment
NuGet Package(s): 7.0.0-preview3
Package Version(s): 7.0.0-preview3
Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [x] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] May 2020 Update (19041)
- [ ] 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)
- [ ] May 2020 Update (19041)
- [ ] Insider Build (xxxxx)
Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Visual Studio
- [ ] 2017 (version: )
- [x] 2019 (version: )
- [ ] 2019 Preview (version: )