Markdown not rendering style with Tailwind
I have the
@nuxtjs/tailwindcss
and @nuxt/content
installed.
Doing a simple page like so:
With my content/terms-of-service.md
looking like this:
I get no styling for the markdown text
Where am I going wrong?7 Replies
Tailwind does reset default styles of e.g.
h1
you can, for example, use the typography plugin + prose
class@tailwindcss/typography - Tailwind CSS
Beautiful typographic defaults for HTML you don't control.
I tried that but I didn't know I needed a plugin for that thanks.
I wish the docs would cover that
the tailwind docs should cover the preflight/reset 🙂
Preflight - Tailwind CSS
An opinionated set of base styles for Tailwind projects.
Yeah that does, but the nuxt ones don't iirc
True. But that’s also a bit difficult: how much info to put on the module page, how much do you “assume” that people know.
(Because they know the library/css framework/…)