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

Fix MathJax rendering #14

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Fix MathJax rendering #14

merged 1 commit into from
Jul 31, 2024

Conversation

dat-boris
Copy link
Collaborator

@dat-boris dat-boris commented Jul 31, 2024

Summary:

This PR deals with the following rendering issue:

This PR suppress that by adding ignoreHtmlClass.

Issue: https://khanacademy.atlassian.net/browse/DI-1514

Test Plan

Open the above threads and confirm that the MathJax rendering behaves correctly.

The dev server yarn start should also show this.

image

Before fix - misrendering highlighted

image

This PR deals with the following rendering issue:

* Multiple dollar signs in MathJax expression lead to mistaken MathJax rendering
  - Thread ID: 1a78652b351779b476903c9966ef2c455fc244f2
  - Test task URL: https://data-labeling-test.khanacademy.org/projects/314/data?tab=624&page=1&task=108725

* `/begin{}` and `\end{}` always trigger rendering dispite Marker not exists.  This lead to bad selection threads.
  - Thread ID: 032e483505cd43f2bee52184b4dbec57db559681
  - Test task URL: https://data-labeling-test.khanacademy.org/projects/314/data?tab=624&page=1&task=108659

This PR suppress that by adding `ignoreClass`, as well as removing unnecessary
`no display` tags which also simplifies the rendering.

Issue: https://khanacademy.atlassian.net/browse/DI-1514

Test Plan:

Open the above threads and confirm that the MathJax rendering behaves correctly.
@dat-boris dat-boris self-assigned this Jul 31, 2024
@dat-boris dat-boris requested review from lizfaubell and a team July 31, 2024 18:11
@dat-boris dat-boris marked this pull request as ready for review July 31, 2024 18:11
Copy link

@lizfaubell lizfaubell left a comment

Choose a reason for hiding this comment

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

Nice!

@dat-boris dat-boris merged commit 984a8f3 into master Jul 31, 2024
11 of 12 checks passed
khan-actions-bot pushed a commit to Khan/label-studio that referenced this pull request Jul 31, 2024
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