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

Include default font configuration so that it will be loaded when input/chtml or input/svg is loaded #992

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Aug 22, 2023

This PR adds the default font to the default configuration for node-main so that when an output jax is loaded, it will load the default font automatically (rather than the "no-font" that is built into the input/chtml and input/svg components). This allows you to do

require("mathjax-full").init({loader: {load: ['input/tex', 'output/svg']}}).then(...)

without having to include configuration for the font by hand. You can still override the font by setting the loader.paths and output.font values in the argument to init() if you want to use a different font.

@dpvc dpvc requested a review from zorkow August 22, 2023 16:54
@dpvc dpvc added this to the v4.0 milestone Aug 22, 2023
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

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

lgtm.

@dpvc dpvc merged commit c958700 into develop Sep 15, 2023
@dpvc dpvc deleted the fix-node-font branch September 15, 2023 12:08
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.

None yet

2 participants