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

Code Example 1

# https://github.com/mixu/markdown-styles
mkdir input/
echo "# Hello world\n YOLO" > input/index.md
generate-md --layout github --input ./input --output ./output
google-chrome ./output/index.html

Learn ReactJs, React Native from akashmittal.com