Sam Ruby has been doing a bang-up job fixing the bugs in REXML. Who knows when these improvements will trickle down to vendor distributions of Ruby. In the meantime, let's bundle the latest version of REXML with Instiki. We check the version number of the bundled REXML against that of the System REXML, and use whichever is later.
2.4 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
\alpha
\beta
\gamma
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl *** α
\begin{equation} \alpha \end{equation}
\begin{equation} \beta \end{equation}
\begin{equation} \gamma \end{equation}
*** Output of Markdown.pl (parsed) ***
\begin{equation} \alpha \end{equation}
\begin{equation} \beta \end{equation}
\begin{equation} \gamma \end{equation}