Do not underline links without an href.

Author: eloyespCreated Jan 24, 2025Updated Jul 23, 2026

A link without the href attribute works like normal text, it would be nice to make prose just ignore those.

Changing the selector from:

css
.prose a {
  /* styles */
}

To:

css
.prose a[href] {
  /* styles */
}

Should be enough.

It seems that it is a single line change on: https://github.com/tailwindlabs/tailwindcss-typography/blob/39d20e194940903046f2e2733ce0a9b59ccd464b/src/styles.js#L1409

There are other rules that select "a", those can be changed too for consistency.

Source: tailwindlabs/tailwindcss-typography