Reputation: 109
I Want to parse a string which contains markdown and I also want to display the parsed markdown in the TextBlock
of UWP App.
Some of the markdowns I want to parse :-
__bold__
_italic_
~!spoiler!~
- Here the text "spoiler" will be hidden and when I click it, it will show up the text.youtube("https://youtu.be/aUnak1")
- This will embed a youtube video.[hyperlink](https://google.com)
- Hyperlink.Anyone has any idea how to achieve this in UWP App. If Someone knows please help me.
Thanks in Advnace...
Upvotes: 0
Views: 580
Reputation: 1450
You can take a look at the Windows Community Toolkit it actually features a MarkdownTextBlock:
You can also take a look at the Windows Community Toolkit sample app:
https://www.microsoft.com/en-us/p/windows-community-toolkit-sample-app/9nblggh4tlcq
Upvotes: 2