Check out example codes for "markdown to html". It will help you in understanding the concepts better.

Code Example 1

Find below some markdown to html converter link:
https://markdowntohtml.com/
https://dillinger.io/
https://www.browserling.com/tools/markdown-to-html

Learn ReactJs, React Native from akashmittal.com