Skip to content
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

DEV: Add test case for syntax highlight of complex HTML #18320

Merged
merged 2 commits into from
Sep 21, 2022

Conversation

xfalcox
Copy link
Member

@xfalcox xfalcox commented Sep 21, 2022

The commit 685e0da upgrade HighlightJS to version 11, which deprecates
syntax highlight of complex HTML elements. See highlightjs/highlight.js#2889

This brought a regression of syntax highlighting of GitHub oneboxes,
which was fixed in 09cec7d. This commit adds a test case to prevent
future regressions like this one.

The commit 685e0da upgrade HighlightJS to version 11, which deprecates
syntax highlight of complex HTML elements. See highlightjs/highlight.js#2889

This brought a regression of syntax highlighting of GitHub oneboxes,
which was fixed in 09cec7d. This commit adds a test case to prevent
future regressions like this one.

let siteSettings = { autohighlight_all_code: true },
session = {
highlightJsPath: "/assets/highlightjs/highlight-test-bundle.min.js",
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, why is it that we can't use the regular (non-test) bundle?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only thing I saw differently is that it's a smaller bundle, but I'm not sure why we created this thing in the first place. Maybe it was the "run tests from themes in the running app" initiative? I don't have enough context here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I see, it was already there... ok, nevermind.

@xfalcox xfalcox merged commit f11b926 into main Sep 21, 2022
@xfalcox xfalcox deleted the test-highlightjs-with-html branch September 21, 2022 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants