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...
CodePudding user response:
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
