Skip to content

Provide switch for warn/error for invalid options#717

Merged
dpvc merged 1 commit intodevelopfrom
option-warnings
Jun 8, 2021
Merged

Provide switch for warn/error for invalid options#717
dpvc merged 1 commit intodevelopfrom
option-warnings

Conversation

@dpvc
Copy link
Copy Markdown
Member

@dpvc dpvc commented Jun 4, 2021

This PR changes invalid-option messages from fatal to warning (so MathJax will still run when a bad option is specified). New configuration options are added to the startup block to control whether the message is a warning or a fatal one, and to provide a function that is called when there is an invalid option (so that you can trap these easier, and handle them in whatever way is desired).

@dpvc dpvc added this to the 3.2 milestone Jun 4, 2021
@dpvc dpvc requested a review from zorkow June 4, 2021 16:38
Copy link
Copy Markdown
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.

Nice. Thanks for the switch.

@dpvc dpvc merged commit eacfc38 into develop Jun 8, 2021
@dpvc dpvc deleted the option-warnings branch June 8, 2021 19:22
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