haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 241 forks source link

Add grey background to inline code #1635

Closed jasagredo closed 4 months ago

jasagredo commented 5 months ago

In line with what other programming languages show, monospaced text will now have a slightly grey background:

image

as without it, specially non-linked monospaced words were very difficult to spot:

image

This follows the same style as Rust does, which in my opinion looks very readable

image


This is probably a matter of preference and esthetics so I think it would be perfectly understandable if the PR is not accepted.

Kleidukos commented 4 months ago

Hi, thank you for this PR, but Haddock now lives full-time in the GHC repository! Read more at https://discourse.haskell.org/t/haddock-now-lives-in-the-ghc-repository/9576.

Let me know if you feel it is still needed, and I'll migrate it. :)

jasagredo commented 4 months ago

Ported https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12672 @Kleidukos