Skip to content

Override HLJS selectors from Sourcegraph

Jacques Erasmus requested to merge 365167-hljs-overrides into master

What does this MR do and why?

Leaked global styles from Sourcegraph conflict with Highlight.js syntax highlighting in some themes (upstream issue).

This temporary measure overrides the leaked styles.

Screenshots or screen recordings

None

before after
Screenshot_2022-06-14_at_15.45.16 Screenshot_2022-06-14_at_15.45.28

Solarized Dark

before after
Screenshot_2022-06-14_at_15.22.39 Screenshot_2022-06-14_at_15.23.14

Monaco

before after
Screenshot_2022-06-14_at_15.23.59 Screenshot_2022-06-14_at_15.24.20

How to set up and validate locally

  1. Enable `highlight_js
  2. Setup Sourcegraph
  3. View a Source file

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #365167 (closed)

Edited by Jacques Erasmus

Merge request reports

Loading