Documenter.jl: Why is inlined code rendered in red?

Created on 12 Dec 2019  路  3Comments  路  Source: JuliaDocs/Documenter.jl

I noticed that Documenter.jl renders inlined code in red (unless a hyperlink is attached, in which case it is rendered in blue). See here for an example.

I find this choice questionable and I am wondering how it is motivated. Indeed, the color red is more conventionally used to attract one's attention on a malformed element (such as a broken hyperlink) or to make an element strongly stand-out. To me, rendering inlined code in black or gray would be more readable and less confusing.

Does anyone have thoughts on this?

HTML Enhancement

Most helpful comment

I do think that the current red pulls a bit too much attention to the random inline quoted code. It is also quite unfortunate that you can no longer see when quoted code is a link. Personally, I would prefer putting it back the way it was.

All 3 comments

I do think that the current red pulls a bit too much attention to the random inline quoted code. It is also quite unfortunate that you can no longer see when quoted code is a link. Personally, I would prefer putting it back the way it was.

Fair enough. I actually do agree that if there is a lot of inline code in a paragraph, the red is jarring. As to the "why", just for the record, it's the Bulma default for inline code.

My current intention is to set the inline code color to #000, which creates a bit more contrast than the color of the main text. I do think it's good if the inline code stands out slightly. But I am not 100% sure what to do in the dark theme yet.

It is also quite unfortunate that you can no longer see when quoted code is a link.

Do you have an example of that? This was fixed in #1167 and included in the 0.24.0 release.

Do you have an example of that?

On e.g. https://kristofferc.github.io/PackageCompilerX.jl/dev/sysimages/#Creating-a-sysimage-using-PackageCompilerX-1 I see

bild

but create_sysimage is a link while the others are not.

But maybe my Documenter version got out of date (https://github.com/KristofferC/PackageCompilerX.jl/blob/6edc13fd4e7c0547351785958cc6b2f701c19373/docs/Manifest.toml#L26). I will try update it.

Edit: Yep, fixed with an update. Sorry for the noise.

Was this page helpful?
0 / 5 - 0 ratings