Running conversions with math2svg = False was failing as dbk-clean.xsl was checking for presence of MathML and returning an error if it found any. This check is now conditional.
Additionally ‘simple’ MathML to CNXML conversion is now also disabled when math2svg is set to False, since in this case another MathML renderer must be used and, presumably, it will be preferred to this conversion.
Running conversions with
math2svg = False
was failing as dbk-clean.xsl was checking for presence of MathML and returning an error if it found any. This check is now conditional.Additionally ‘simple’ MathML to CNXML conversion is now also disabled when
math2svg
is set toFalse
, since in this case another MathML renderer must be used and, presumably, it will be preferred to this conversion.This PR is based on #4064.