instiki/vendor/plugins/maruku/tests/unittest/math/math2.md
Jacques Distler 1085168bbf Update to latest HTML5lib, Add Maruku testdir
Sync with the latest html5lib.
Having the Maruku unit tests on-hand may be useful for debugging; so let's include them.
2008-01-08 00:01:35 -06:00

2.1 KiB
Raw Blame History

*** 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 ***

(1)α
\alpha

α
\alpha

β
\beta
γ
\gamma
*** 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 ***

*** Output of to_s ***

*** EOF ***

OK!

*** Output of Markdown.pl ***

[ \alpha ]

\begin{equation} \alpha \end{equation}

\begin{equation} \beta \end{equation}

\begin{equation} \gamma \end{equation}

*** Output of Markdown.pl (parsed) *** Error: #<NoMethodError: private method `write_children' called for

... </>:REXML::Element>