Skip to content

Conversation

jmooring
Copy link
Member

Fixes #11445

Order of precedence for highlight style should be:

  1. The hugo gen chromastyles --highlightStyle flag
  2. The LineHighlight style as provided in each style's XML file (only 5 of the 63 styles have this)
  3. The default as determined by Chroma, based on the background color:

https://github.com/alecthomas/chroma/blob/c4527e8d5cf969976ce67f3ba5f9edde5ec27afd/style.go#L411-L413

@jmooring jmooring force-pushed the fix/highlight-default-color branch from 4f1c677 to 8792832 Compare September 13, 2023 00:32
@jmooring jmooring force-pushed the fix/highlight-default-color branch from 8792832 to 6a5f3b2 Compare September 13, 2023 00:33
@bep bep merged commit 75c0f88 into gohugoio:master Sep 14, 2023
@jmooring jmooring deleted the fix/highlight-default-color branch September 14, 2023 15:00
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chromastyles for line highlighting isn't using the correct color
2 participants