Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request implements a subset of MathML's allowed
mathvariants
. They are implemented with maximum compatibility in mind, so anything that was converted bymathml2latex
before continues to be converted as is.The attribute is implemented for all elements that support it directly as per https://developer.mozilla.org/en-US/docs/Web/MathML/Element.
mstyle
is not handled,mspace
neither (because the implementation at the moment always returns an empty string anyways).Please note that some
mathvariants
are left unimplemented: https://w3c.github.io/mathml-core/#dfn-mathvariant. This is done to minimize unexpected outcomes. While you could convert bold-fraktur for example, this wouldn't be rendered correctly in some environments (e.g. Katex). An implementation independent of target-environment might require major changes to the library as far as I can tell.