A Letext to MathML converter for ProcessWire
Go to file
7u83 bb37fc62bd Encodes & to & 2023-12-12 12:35:58 +01:00
LICENSE Initial commit 2023-11-25 14:41:09 +01:00
README.md Update README.md 2023-11-25 16:26:31 +01:00
TextformatterLatexMathML.module Encodes & to & 2023-12-12 12:35:58 +01:00

README.md

processwire-TextformatterLatexMathML

A Latext to MathML converter for ProcessWire

Searches for Latext formulas enclosed in $-signs like this “$\sqrt{a^{2}+b^{2}}=c$” and substitites it by MathML like this:

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <mrow>
        <mrow>
            <msqrt>
                <mrow>
                    <msup>
                        <mrow>
                            <mi>a</mi>
                        </mrow>
                    <mrow>
                        <mn>2</mn>
                    </mrow>
                </msup>
                <mo>+</mo>
                <msup>
                    <mrow>
                        <mi>b</mi>
                    </mrow>
                    <mrow>
                        <mn>2</mn>
                    </mrow>
                </msup>
            </mrow>
        </msqrt>
        <mo>=</mo><mi>c</mi>
        </mrow>
    </mrow>
</math>

which finally will be rendered by your browser as nice looking math formula.

\sqrt{a^{2}+b^{2}}=c

INSTALL

Requires on your server the programm latexmlmath to be installed.