instiki/vendor/plugins/maruku/tests/unittest/math/inline.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.8 KiB
Raw Blame History

*** Parameters: *** require 'maruku/ext/math'; {} *** Markdown input: *** Here are some formulas:

  • \alpha
  • x^{n}+y^{n} \neq z^{n}

That's it, nothing else is supported.

*** Output of inspect *** md_el(:document,[ md_par(["Here are some formulas:"]), md_el(:ul,[ md_el(:li_span,[md_el(:inline_math,[],{:math=>"\alpha"},[])],{:want_my_paragraph=>false},[]), md_el(:li_span,[md_el(:inline_math,[],{:math=>"x^{n}+y^{n} \neq z^{n}"},[])],{:want_my_paragraph=>false},[]) ],{},[]), md_par(["That", md_entity("rsquo"), "s it, nothing else is supported."]) ],{},[]) *** Output of to_html ***

Here are some formulas:

  • \alpha
  • x^{n}+y^{n} \neq z^{n}

Thats it, nothing else is supported.

*** Output of to_latex *** Here are some formulas:

\begin{itemize}% \item $\alpha$ \item x^{n}+y^{n} \neq z^{n}

\end{itemize} That'{}s it, nothing else is supported. *** Output of to_md *** Here are some formulas:

-- That s it, nothing else is supported. *** Output of to_s *** Here are some formulas:Thats it, nothing else is supported. *** EOF ***

Failed tests: [:to_html]

*** Output of inspect *** md_el(:document,[ md_par(["Here are some formulas:"]), md_el(:ul,[ md_el(:li_span,[md_el(:inline_math,[],{:math=>"\alpha"},[])],{:want_my_paragraph=>false},[]), md_el(:li_span,[md_el(:inline_math,[],{:math=>"x^{n}+y^{n} \neq z^{n}"},[])],{:want_my_paragraph=>false},[]) ],{},[]), md_par(["That", md_entity("rsquo"), "s it, nothing else is supported."]) ],{},[]) *** Output of to_html *** -----| WARNING | -----

Here are some formulas:

  • α
  • x n+y n≠z n

Thats it, nothing else is supported.

*** Output of to_latex *** Here are some formulas:

\begin{itemize}% \item $\alpha$ \item x^{n}+y^{n} \neq z^{n}

\end{itemize} That'{}s it, nothing else is supported. *** Output of to_md *** Here are some formulas:

-- That s it, nothing else is supported. *** Output of to_s *** Here are some formulas:Thats it, nothing else is supported. *** Output of Markdown.pl ***

Here are some formulas:

  • $\alpha$
  • $x^{n}+y^{n} \neq z^{n}$

That's it, nothing else is supported.

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

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