instiki/vendor/plugins/maruku/tests/unittest/list4.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

1.8 KiB

Write a comment abouth the test here. *** Parameters: *** {} *** Markdown input: *** This is a list:

  • one
  • two

This is not a list:

  • one ciao

This is a list:

  1. one
  2. two

This is not a list: 1987. one ciao

*** Output of inspect *** md_el(:document,[ md_par(["This is a list:"]), md_el(:ul,[ md_el(:li_span,["one"],{:want_my_paragraph=>false},[]), md_el(:li_span,["two"],{:want_my_paragraph=>false},[]) ],{},[]), md_par(["This is not a list: * one ciao"]), md_par(["This is a list:"]), md_el(:ol,[ md_el(:li_span,["one"],{:want_my_paragraph=>false},[]), md_el(:li_span,["two"],{:want_my_paragraph=>false},[]) ],{},[]), md_par(["This is not a list: 1987. one ciao"]) ],{},[]) *** Output of to_html ***

This is a list:

  • one
  • two

This is not a list: * one ciao

This is a list:

  1. one
  2. two

This is not a list: 1987. one ciao

*** Output of to_latex *** This is a list:

\begin{itemize}% \item one \item two

\end{itemize} This is not a list: * one ciao

This is a list:

\begin{enumerate}% \item one \item two

\end{enumerate} This is not a list: 1987. one ciao *** Output of to_md *** This is a list:

-ne -wo

This is not a list: * one ciao

This is a list:

  1. one
  2. two

This is not a list: 1987. one ciao *** Output of to_s *** This is a list:onetwoThis is not a list: * one ciaoThis is a list:onetwoThis is not a list: 1987. one ciao *** EOF ***

OK!

*** Output of Markdown.pl ***

This is a list: * one * two

This is not a list: * one ciao

This is a list: 1. one 1. two

This is not a list: 1987. one ciao

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

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