Parse Markdowns in TextBlock in UWP .NET C#

  .net, c++, uwp, uwp-xaml, windows

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 :-

  1. __bold__
  2. _italic_
  3. ~!spoiler!~ – Here the text "spoiler" will be hidden and when I click it, it will show up the text.
  4. youtube("https://youtu.be/aUnak1") – This will embed a youtube video.
  5. [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…

Source: Windows Questions

LEAVE A COMMENT