-
Notifications
You must be signed in to change notification settings - Fork 840
Remove LaTeX block in favor of Math block in core #45746
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
base: trunk
Are you sure you want to change the base?
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the experimental Math (LaTeX) block from Jetpack, including all associated files, dependencies, and configuration entries.
Key Changes
- Removes the
katexdependency (version 0.16.22) from package.json and pnpm-lock.yaml - Deletes all latex block source files (JS, SCSS, PHP, JSON)
- Removes "latex" from the beta extensions list in index.json
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
projects/plugins/jetpack/package.json |
Removes katex dependency from npm dependencies |
projects/plugins/jetpack/extensions/index.json |
Removes "latex" from beta extensions list |
projects/plugins/jetpack/extensions/blocks/latex/view.js |
Deletes front-end rendering logic for latex block |
projects/plugins/jetpack/extensions/blocks/latex/style.scss |
Deletes front-end styles (katex CSS import) |
projects/plugins/jetpack/extensions/blocks/latex/save.js |
Deletes save function for block output |
projects/plugins/jetpack/extensions/blocks/latex/latex.php |
Deletes PHP registration and asset loading |
projects/plugins/jetpack/extensions/blocks/latex/icon.js |
Deletes block icon definitions |
projects/plugins/jetpack/extensions/blocks/latex/editor.scss |
Deletes editor-specific styles |
projects/plugins/jetpack/extensions/blocks/latex/editor.js |
Deletes block registration code |
projects/plugins/jetpack/extensions/blocks/latex/edit.js |
Deletes block editor component |
projects/plugins/jetpack/extensions/blocks/latex/block.json |
Deletes block metadata configuration |
projects/plugins/jetpack/changelog/remove-latex-block |
Adds changelog entry for the removal |
pnpm-lock.yaml |
Updates lockfile to remove katex package references |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
This beta block is not needed anymore. Since Core has a Math block now.
Proposed changes:
Basically revert #44895
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: