Why Tailwind CSS doesn't render markdown in React/Next.js
Issue
When I initially made this static blog with Next.js following this tutorial — Static Blog With Next.js and Markdown — below /[slug].js code didn't render markdown properly.
Upon inspecting elements, I noted that markdown contents are rendered with appropriate HTML tags.
This markdown blog post...
will turn into this HTML
But the respective CSS for the HTML elements were not applied as I was using Tailwind CSS.
Turns out Tailwind CSS negates the defaults styles and you need to specify each elements how it should look.
<h1>title1</h1> will just be a text with default font size.