Skip to content
Discussion options

You must be logged in to vote

It is intended behavior that you need to wrap the non-prose-styled content with an element that has the not-prose class, as per the documentation:

If you have a block of markup embedded in some content that shouldn’t inherit the prose styles, use the not-prose class to sandbox it:

<article class="prose">
  <h1>My Heading</h1>
  <p>...</p>

  <div class="not-prose">
    <!-- Some example or demo that needs to be prose-free -->
  </div>

  <p>...</p>
  <!-- ... -->
</article>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JurjenRoels
Comment options

@piszczu4
Comment options

Answer selected by JurjenRoels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants