a84648cff1
Sync with latest Maruku (now on github). lib/maruku/ext/math/mathml_engines/none.rb should HTML-escape the TeX source code. No it does.
1.9 KiB
1.9 KiB
*** Parameters: *** require 'maruku/ext/math' {:math_numbered => ['\['], :html_math_engine => 'itex2mml' } *** Markdown input: ***
[ \alpha ]
\begin{equation} \alpha \end{equation}
\begin{equation} \beta \end{equation}
\begin{equation} \gamma \end{equation} *** Output of inspect *** md_el(:document,[ md_el(:equation,[],{:label=>"eq1",:math=>"\t\alpha\n\n",:num=>1},[]), md_el(:equation,[],{:label=>nil,:math=>"\t\alpha\n\n",:num=>nil},[]), md_el(:equation,[],{:label=>nil,:math=>" \beta\n",:num=>nil},[]), md_el(:equation,[],{:label=>nil,:math=>" \gamma ",:num=>nil},[]) ],{},[]) *** Output of to_html ***
α
\alpha
(1)α
\alpha
β
\beta
γ
*** Output of to_latex ***
\begin{equation}
\alpha
\label{eq1}\end{equation}
\begin{displaymath}
\alpha
\end{displaymath}
\begin{displaymath}
\beta
\end{displaymath}
\begin{displaymath}
\gamma
\end{displaymath}
*** Output of to_md ***
\gamma
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl *** (not used anymore) *** Output of Markdown.pl (parsed) *** (not used anymore)