Skip to content

[BUG] Child element styles (bold, color, etc.) are ignored inside anchor tags #1502

Open

Description

@OseRen04

Describe the bug:
When using styled elements like <strong>, <em>, or inline styles inside an <a> tag with an href attribute, the child element styles are completely ignored. Only the parent anchor's default style (blue + underline) is applied.

HTML to reproduce the issue:

<a href="https://example.com">
  This is <strong>bold</strong> and <span style="color: red;">red text</span>
</a>

A picture of a cute animal (not mandatory but encouraged)

Image

Activity

  1. added
    bug
    on Jan 17, 2026
  2. OseRen04 commented on Jan 18, 2026

    @OseRen04
    Author

    If this behavior is intentional (by design), feel free to close this issue.
    I wasn’t sure whether it’s expected or a bug, so I reported it with a minimal repro.
    I also opened a PR (#1503) that merges child styles inside 「a href」 instead of overriding them—please let me know if that direction is not desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions