jf!dZdZddZdS)a This is the Docutils (Python Documentation Utilities) "math" sub-package. It contains various modules for conversion between different math formats (LaTeX, MathML, HTML). :math2html: LaTeX math -> HTML conversion from eLyXer :latex2mathml: LaTeX math -> presentational MathML :unichar2tex: Unicode character to LaTeX math translation table :tex2unichar: LaTeX math to Unicode character translation dictionaries :tex2mathml_extern: Wrapper for 3rd party TeX -> MathML converters cj|d}dd|DS)zAReturn string (LaTeX math) `code` with environments stripped out.z\begin{c3LK|]}|ddV dS)z\end{N)split).0chunks |/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/docutils/utils/math/__init__.py z toplevel_code.. sG00$!;;x004000000)rjoin)codechunkss r toplevel_codersE ZZ # #F ??00(.000 0 00r Fcjt|ddkrd}nd}|s|dz }|S)a: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. z\\alignequation*)rfind)r numberedenvs rpick_math_environmentr$sGT&&!++  s  Jr N)F)__doc__rrr rrs<  "000r