Skip to content

Strong inside <a> causes rendering issues #275

Closed
@surjithctly

Description

@surjithctly

What version of @tailwindcss/typography are you using?

3.1.0

What version of Node.js are you using?

v16.0

What browser are you using?

Chrome

What operating system are you using?

MacOS

Reproduction repository

https://play.tailwindcss.com/VTb5NkiKvQ

Describe your issue

I have a simple usecase where <strong> tag is inserted inside <strong><a> but this doesn't display as expected.

I have given prose-violet and also prose-a:text-violet-500 but the color renders as black except the underline.

The sample code:

<div class="prose prose-violet prose-a:text-violet-500 p-16"> 
  <p>
    <strong>It is recommended to go through</strong>
    <a href="#" rel="noopener" target="_blank">
      <strong>Rollup's plugin documentation</strong>
    </a>
    <strong>first before reading the sections below.</strong>
  </p>
</div>

The current result.
image

Expected Result:
image

Live reproducible demo on Tailwind Play
https://play.tailwindcss.com/VTb5NkiKvQ

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions