Avoiding XSS via Markdown in React
Using Markdown with Sanitization
Websites often use Markdown to allow their users to create content. It provides a lightweight markup language that can be converted to HTML and other formats by many common libraries.