Apologies for the size of this pull request, but there doesn't really seem to be any way to make it smaller.
Included is:
code to run a user-supplied stylesheet and put the resulting formulas into the document,
documentation of how to turn on MathML in the schema and supply a stylesheet,
a test case to verify that it actually works.
The MathML conversion was deliberately placed in a separate file since the DocxGenerator class is already bigger than it should be.
The test case takes a different form than the original test cases. It might be a good idea to convert the existing test cases to this form in order to cut down on repetition.
Apologies for the size of this pull request, but there doesn't really seem to be any way to make it smaller.
Included is:
The MathML conversion was deliberately placed in a separate file since the
DocxGenerator
class is already bigger than it should be.The test case takes a different form than the original test cases. It might be a good idea to convert the existing test cases to this form in order to cut down on repetition.