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

feat: support configuring mathjax context #108

Merged
merged 2 commits into from
Aug 1, 2023
Merged

Conversation

dlockhart
Copy link
Member

This is meant to remove the need for this plugin which includes this script in unit and visual-diff tests.

Consumers will be able to enable LaTeX in their tests by passing { mathjax: { renderLatex: true } } as an option to fixture(). That'll get reset in between each test. If required, I'm leaving the door open to more mathjax configuration options.

@dlockhart dlockhart requested a review from a team as a code owner July 31, 2023 19:03
@dlockhart
Copy link
Member Author

@devpow112 I see you spotted this -- interested in your thoughts too!

@devpow112
Copy link
Contributor

@devpow112 I see you spotted this -- interested in your thoughts too!

I'm definitely happy to make anything simpler. The script was definitely just a workaround (mainly for rubrics/outcomes) when doing test/vdiff stuff (vdiff didn't seem to like me just setting the mathjax context in the HTML directly). Having it be part of the framework makes me happy 😄

test/browser/fixture.test.js Outdated Show resolved Hide resolved
@dlockhart dlockhart enabled auto-merge (squash) August 1, 2023 15:48
@dlockhart dlockhart merged commit 0c43fa1 into main Aug 1, 2023
1 check passed
@dlockhart dlockhart deleted the dlockhart/mathjax branch August 1, 2023 15:49
@ghost
Copy link

ghost commented Aug 1, 2023

🎉 This PR is included in version 0.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants