Skip to content

jquery: Fix CSS to account for the newest highlight.js #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2021

Conversation

mgol
Copy link
Member

@mgol mgol commented May 20, 2021

Since for some time some sites will use an older version of
grunt-jquery-content that includes an older highlight.js version, for now both
types of CSS rules need to be present. The legacy ones have been marked with
comments.

The new version of highlight.js uses more generic class names, shared between
languages. That means there's no 1-1 correspondence between the old & the new
ones in all cases & some differences in syntax highlighting will be there.

That's 9 years of highlight.js updates, though!

Ref jquery/grunt-jquery-content#81

@@ -23,7 +23,7 @@

<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/i/favicon.ico">

<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/base.css?v=2">
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/base.css?v=3">
Copy link
Member Author

Choose a reason for hiding this comment

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

We have some caching issues so after changes it's the safest to bump this number, unfortunately...

Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

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

+1 by reading

Since for some time some sites will use an older version of
`grunt-jquery-content` that includes an older highlight.js version, for now both
types of CSS rules need to be present. The legacy ones have been marked with
comments.

The new version of highlight.js uses more generic class names, shared between
languages. That means there's no 1-1 correspondence between the old & the new
ones in all cases & some differences in syntax highlighting will be there.

That's 9 years of highlight.js updates, though!
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

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

LGTM

@mgol mgol merged commit 6d8220e into jquery:main May 20, 2021
@mgol mgol deleted the css-fixes branch May 20, 2021 20: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.

3 participants