Skip to content

Conversation

xfalcox
Copy link
Member

@xfalcox xfalcox commented Sep 20, 2022

This updates the themes with ones compatible with the current version of hljs.

However, the hack we had of unsetting our styles to get the ones from this theme are not working anymore very well, since the styles from the CSS files here are not getting priority.

That said, it appears that this broke independently https://meta.discourse.org/t/codeblock-theme-picker/146396/22?u=falco

@xfalcox xfalcox requested a review from pmusaraj September 20, 2022 15:05
Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a .discourse-compatibility file here, and pin this commit to the commit in core that updates highlight.s to version 11.

And remove `common.scss` overrides, they aren't needed.
@pmusaraj
Copy link
Contributor

We should add a .discourse-compatibility file here, and pin this commit to the commit in core that updates highlight.s to version 11.

Actually, this isn't needed. For many of the styles, new CSS works fine. (And for the deleted ones... well, it falls back to default from core.)

@xfalcox xfalcox merged commit 49005c6 into main Sep 20, 2022
@xfalcox xfalcox deleted the highlightjs-11 branch September 20, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants