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

Include KaTeX CSS as a dependency #15843

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Include KaTeX CSS as a dependency #15843

merged 1 commit into from
Dec 2, 2020

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Nov 27, 2020

This changes the KaTeX CSS inclusion to function just like the other bits of the
CSS that we import from dependencies.

This changes the KaTeX CSS inclusion to function just like the other bits of the
CSS that we import from dependencies.
@jryans jryans requested a review from a team November 27, 2020 12:20
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

lgtm either way, but it does seem like we should solve this dependency issue eventually.

@@ -59,6 +59,7 @@
"gfm.css": "^1.1.2",
"highlight.js": "^10.1.2",
"jsrsasign": "^9.1.5",
"katex": "^0.12.0",
Copy link
Member

Choose a reason for hiding this comment

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

won't this cause further issues with dependency version mismatch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It does mean it's a dependency in two layers, which adds some complexity, but it's also a much more correct expression of what we're actually doing. Also, without this PR, we're relying on a specific pattern layout of nested node_modules directories, which is undefined behaviour, and seemed to be breaking the RC build today, so I think that's enough evidence that we need this change.

Copy link
Member

Choose a reason for hiding this comment

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

yea, understandable. Just concerned that we're going to forget to update the dependency in both layers.

@jryans jryans merged commit ed05f9d into develop Dec 2, 2020
@t3chguy t3chguy deleted the jryans/tweak-katex-css branch May 12, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants