package documentation
(source)

This is the Docutils (Python Documentation Utilities) "math" sub-package.

It contains various modules for conversion between different math formats (LaTeX, MathML, HTML).

Unknown Field: math2html
LaTeX math -> HTML conversion from eLyXer
Unknown Field: latex2mathml
LaTeX math -> presentational MathML
Unknown Field: unichar2tex
Unicode character to LaTeX math translation table
Unknown Field: tex2unichar
LaTeX math to Unicode character translation dictionaries
Unknown Field: tex2mathml_extern
Wrapper for TeX -> MathML command line converters
Module latex2mathml Convert LaTex math code into presentational MathML
Module math2html No module docstring; 2/2 functions, 141/143 classes documented
Module tex2mathml​_extern No module docstring; 0/1 variable, 3/3 functions documented
Module tex2unichar Undocumented
Module unichar2tex Undocumented

From __init__.py:

Function pick​_math​_environment Return the right math environment to display code.
def pick_math_environment(code, numbered=False): (source)

Return the right math environment to display code.

The test simply looks for line-breaks (\) outside environments. Multi-line formulae are set with align, one-liners with equation.

If numbered evaluates to False, the "starred" versions are used to suppress numbering.