Skip to content

Conversation

@alshakero
Copy link
Member

This beta block is not needed anymore. Since Core has a Math block now.

Proposed changes:

Basically revert #44895

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

Does this pull request change what data or activity we track or use?

Testing instructions:

  1. Open the editor.
  2. Smoke test.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack or WordPress.com Site Helper), and enable the remove/latex-block branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack remove/latex-block
bin/jetpack-downloader test jetpack-mu-wpcom-plugin remove/latex-block

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions bot added [Block] Latex [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ labels Nov 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • 🔴 Add a "[Status]" label (In Progress, Needs Review, ...).
  • 🔴 Add a "[Type]" label (Bug, Enhancement, Janitorial, Task).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

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:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: December 2, 2025

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@github-actions github-actions bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Nov 3, 2025
@alshakero alshakero requested a review from Copilot November 3, 2025 14:58
Copy link
Contributor

Copilot AI left a 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 katex dependency (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.

@jp-launch-control
Copy link

jp-launch-control bot commented Nov 3, 2025

Code Coverage Summary

This 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. 🤷

Full summary · PHP report · JS report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Latex [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants