withastro/astro.build

Inline code and link styles collide

Closed this issue ยท 3 comments

Description

When there is inline code inside a link, such as:

[some `code`](a link)

the styles of the inline code and the link collide.

image image

source: Astro blog 4.2

Participation

  • I am willing to submit a pull request for this issue.

I have three possible fixes.

  • The inline code inherits the link coloring
    image

  • The inline code inherits the link underline styles
    image

  • Solution 1 and 2 combined ๐Ÿ’œ
    image

I think 1 and 2 combined looks the best ๐Ÿ‘

I'm definitely in favor of adding the underline! I think the last option, with both color and underline, is the best. Feel free to open a PR!

Screenshot 2024-01-21 at 16 23 00