Skip to content

Clear the SVG stylesheet during reset.#1533

Open
dpvc wants to merge 1 commit into
developfrom
fix/svg-reset
Open

Clear the SVG stylesheet during reset.#1533
dpvc wants to merge 1 commit into
developfrom
fix/svg-reset

Conversation

@dpvc

@dpvc dpvc commented Jul 22, 2026

Copy link
Copy Markdown
Member

This PR adds a line to the SVG output jax's reset() function, so that the stylesheet will be regenerated after a reset. This helps support reusing the SVG output jax in sequentially created math documents (so that in the second document, the SVG output jax doesn't think it already has a stylesheet in place)

@dpvc
dpvc requested a review from zorkow July 22, 2026 18:08
@dpvc dpvc added this to the v4.2 milestone Jul 22, 2026
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.70%. Comparing base (9ef060f) to head (a1ec0f4).

Files with missing lines Patch % Lines
ts/output/svg.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1533      +/-   ##
===========================================
- Coverage    86.70%   86.70%   -0.01%     
===========================================
  Files          340      340              
  Lines        86264    86265       +1     
  Branches      3246     3246              
===========================================
  Hits         74798    74798              
- Misses       11466    11467       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant