Skip to content

TailwindCSS getting in the way of content-collections #252

Answered by sdorra
RickyRaveanu asked this question in Q&A
Discussion options

You must be logged in to vote

The mdx you showed does not contain a single tailwind class. There is nothing which could be stripped out by content-collections. I suspect that you used tailwind typography plugin and the class prose got lost during the migration. The prose class should wrapped around the mdx content e.g.:

<article className="prose">
  <h1>{post.title}</h1>
  <MDXContent code={post.mdx} />
</article>

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@RickyRaveanu
Comment options

@sdorra
Comment options

Answer selected by RickyRaveanu
@RickyRaveanu
Comment options

@RickyRaveanu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants