You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Child element styles (bold, color, etc.) are ignored inside anchor tags #1502
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:
<ahref="https://example.com">
This is <strong>bold</strong> and <spanstyle="color: red;">red text</span></a>
A picture of a cute animal (not mandatory but encouraged)
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.
Activity
OseRen04 commentedon Jan 18, 2026
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.