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.
This commit is contained in:
Jacques Distler 2008-01-08 00:01:35 -06:00
parent ebc409e1a0
commit 1085168bbf
337 changed files with 21290 additions and 72 deletions

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>The <abbr title='Hyper Text Markup Language'>HTML</abbr> specification is maintained by the <abbr title='World Wide Web Consortium'>W3C</abbr>.</p>
<p>Operation <abbr>Tigra Genesis</abbr> is going well.</p>
</body></html>

View file

@ -0,0 +1,72 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
The HTML specification is maintained by the W3C.
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
Operation Tigra Genesis is going well.
*[Tigra Genesis]:
*** Output of inspect ***
md_el(:document,[
md_par([
"The ",
md_el(:abbr,["HTML"],{:title=>"Hyper Text Markup Language"},[]),
" specification is maintained by the ",
md_el(:abbr,["W3C"],{:title=>"World Wide Web Consortium"},[]),
"."
]),
md_el(:abbr_def,[],{:abbr=>"HTML",:text=>"Hyper Text Markup Language"},[]),
md_el(:abbr_def,[],{:abbr=>"W3C",:text=>"World Wide Web Consortium"},[]),
md_par([
"Operation ",
md_el(:abbr,["Tigra Genesis"],{:title=>nil},[]),
" is going well."
]),
md_el(:abbr_def,[],{:abbr=>"Tigra Genesis",:text=>nil},[])
],{},[])
*** Output of to_html ***
<p>The <abbr title='Hyper Text Markup Language'>HTML</abbr> specification is maintained by the <abbr title='World Wide Web Consortium'>W3C</abbr>.</p>
<p>Operation <abbr>Tigra Genesis</abbr> is going well.</p>
*** Output of to_latex ***
The HTML specification is maintained by the W3C.
Operation Tigra Genesis is going well.
*** Output of to_md ***
The HTMLspecification is maintained by
the W3C.
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
Operation Tigra Genesisis going well.
*[Tigra Genesis]:
*** Output of to_s ***
The HTML specification is maintained by the W3C.Operation Tigra Genesis is going well.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>The HTML specification is maintained by the W3C.</p>
<p>*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium</p>
<p>Operation Tigra Genesis is going well.</p>
<p>*[Tigra Genesis]:</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p><img src='/foo.jpg' alt='bar' /></p>
</body></html>

View file

@ -0,0 +1,30 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
![bar](/foo.jpg)
*** Output of inspect ***
md_el(:document,[md_par([md_im_image(["bar"], "/foo.jpg", nil)])],{},[])
*** Output of to_html ***
<p><img src='/foo.jpg' alt='bar' /></p>
*** Output of to_latex ***
*** Output of to_md ***
bar
*** Output of to_s ***
bar
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p><img src="/foo.jpg" alt="bar" title="" /></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body /></html>

View file

@ -0,0 +1,34 @@
*** Parameters: ***
{}
*** Markdown input: ***
{a}: a
{:b: a}
*** Output of inspect ***
md_el(:document,[
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"a"},[]),
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
],{},[])
*** Output of to_html ***
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>{a}: a
{:b: a}</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p id='par1'>Paragraph1</p>
<p id='par2'>Paragraph2</p>
</body></html>

View file

@ -0,0 +1,45 @@
IALs can refer to element before or after.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph1
{:#par1}
{:#par2}
Paragraph2
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph1"], [[:id, "par1"]]),
md_par(["Paragraph2"], [[:id, "par2"]])
],{},[])
*** Output of to_html ***
<p id='par1'>Paragraph1</p>
<p id='par2'>Paragraph2</p>
*** Output of to_latex ***
Paragraph1
Paragraph2
*** Output of to_md ***
Paragraph1
Paragraph2
*** Output of to_s ***
Paragraph1Paragraph2
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Paragraph1
{:#par1}</p>
<p>{:#par2}
Paragraph2</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<h2 id='header1'>Header with attributes</h2>
<h3 id='header2'>Header with attributes</h3>
<h3 id='header_no_attributes'>Header no attributes</h3>
<p id='par1'>Paragraph with a.</p>
<p id='par2'>Paragraph with <em class='chello'>emphasis</em></p>
</body></html>

View file

@ -0,0 +1,82 @@
This is a simple test for attributes
*** Parameters: ***
{}
*** Markdown input: ***
Header with attributes {#header1}
----------------------
### Header with attributes ### {#header2}
### Header no attributes ###
{:warn2}Paragraph with a.
{#par1}
Paragraph with *emphasis*{:hello notfound}
{#par2}
{:hello: .chello}
*** Output of inspect ***
md_el(:document,[
md_el(:header,["Header with attributes"],{:level=>2},[[:id, "header1"]]),
md_el(:header,["Header with attributes"],{:level=>3},[[:id, "header2"]]),
md_el(:header,["Header no attributes"],{:level=>3},[]),
md_par(["Paragraph with a."], [[:id, "par1"]]),
md_par([
"Paragraph with ",
md_em(["emphasis"], [[:ref, "hello"], [:ref, "notfound"]])
], [[:id, "par2"]]),
md_el(:ald,[],{:ald=>[[:class, "chello"]],:ald_id=>"hello"},[])
],{},[])
*** Output of to_html ***
<h2 id='header1'>Header with attributes</h2>
<h3 id='header2'>Header with attributes</h3>
<h3 id='header_no_attributes'>Header no attributes</h3>
<p id='par1'>Paragraph with a.</p>
<p id='par2'>Paragraph with <em class='chello'>emphasis</em></p>
*** Output of to_latex ***
\hypertarget{header1}{}\subsection*{{Header with attributes}}\label{header1}
\hypertarget{header2}{}\subsubsection*{{Header with attributes}}\label{header2}
\hypertarget{header_no_attributes}{}\subsubsection*{{Header no attributes}}\label{header_no_attributes}
Paragraph with a.
Paragraph with \emph{emphasis}
*** Output of to_md ***
Header with attributesHeader with attributesHeader no attributesParagraph with a.
Paragraph with emphasis
*** Output of to_s ***
Header with attributesHeader with attributesHeader no attributesParagraph with a.Paragraph with emphasis
*** EOF ***
OK!
*** Output of Markdown.pl ***
<h2>Header with attributes {#header1} </h2>
<h3>Header with attributes ### {#header2}</h3>
<h3>Header no attributes</h3>
<p>{:warn2}Paragraph with a.
{#par1}</p>
<p>Paragraph with <em>emphasis</em>{:hello notfound}
{#par2}</p>
<p>{:hello: .chello}</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Paragraph</p>
</body></html>

View file

@ -0,0 +1,43 @@
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph
{:a}
{:a: b}
{:b: a}
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph"], [[:ref, "a"]]),
md_el(:ald,[],{:ald=>[[:ref, "b"]],:ald_id=>"a"},[]),
md_el(:ald,[],{:ald=>[[:ref, "a"]],:ald_id=>"b"},[])
],{},[])
*** Output of to_html ***
<p>Paragraph</p>
*** Output of to_latex ***
Paragraph
*** Output of to_md ***
Paragraph
*** Output of to_s ***
Paragraph
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Paragraph
{:a}</p>
<p>{:a: b}
{:b: a}</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p class='maruku-par' id='2'>Paragraph2</p>
</body></html>

View file

@ -0,0 +1,38 @@
This shows the use of default attributes list.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph2
{#2}
{paragraph}: .maruku-par
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph2"], [[:id, "2"]]),
md_el(:ald,[],{:ald=>[[:class, "maruku-par"]],:ald_id=>"paragraph"},[])
],{},[])
*** Output of to_html ***
<p class='maruku-par' id='2'>Paragraph2</p>
*** Output of to_latex ***
Paragraph2
*** Output of to_md ***
Paragraph2
*** Output of to_s ***
Paragraph2
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Paragraph2
{#2}</p>
<p>{paragraph}: .maruku-par</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Linea 1</p>
<p>Linea 2</p>
</body></html>

View file

@ -0,0 +1,39 @@
Write a comment about the test here.
*** Parameters: ***
{}
*** Markdown input: ***
Linea 1
Linea 2
*** Output of inspect ***
md_el(:document,[md_par(["Linea 1"]), md_par(["Linea 2"])],{},[])
*** Output of to_html ***
<p>Linea 1</p>
<p>Linea 2</p>
*** Output of to_latex ***
Linea 1
Linea 2
*** Output of to_md ***
Linea 1
Linea 2
*** Output of to_s ***
Linea 1Linea 2
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Linea 1</p>
<p>Linea 2</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>This block is composed of three lines:</p>
<pre><code>one
three</code></pre>
<p>This block is composed of 5</p>
<pre><code>one
four</code></pre>
<p>This block is composed of 2</p>
<pre><code>two</code></pre>
</body></html>

View file

@ -0,0 +1,106 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This block is composed of three lines:
one
three
This block is composed of 5
one
four
This block is composed of 2
two
*** Output of inspect ***
md_el(:document,[
md_par(["This block is composed of three lines:"]),
md_el(:code,[],{:raw_code=>"one\n\nthree"},[]),
md_par(["This block is composed of 5"]),
md_el(:code,[],{:raw_code=>"one\n\n\nfour"},[]),
md_par(["This block is composed of 2"]),
md_el(:code,[],{:raw_code=>"two"},[])
],{},[])
*** Output of to_html ***
<p>This block is composed of three lines:</p>
<pre><code>one
three</code></pre>
<p>This block is composed of 5</p>
<pre><code>one
four</code></pre>
<p>This block is composed of 2</p>
<pre><code>two</code></pre>
*** Output of to_latex ***
This block is composed of three lines:
\begin{verbatim}one
three\end{verbatim}
This block is composed of 5
\begin{verbatim}one
four\end{verbatim}
This block is composed of 2
\begin{verbatim}two\end{verbatim}
*** Output of to_md ***
This block is composed of three lines:
This block is composed of 5
This block is composed of 2
*** Output of to_s ***
This block is composed of three lines:This block is composed of 5This block is composed of 2
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>This block is composed of three lines:</p>
<pre><code>one
three
</code></pre>
<p>This block is composed of 5</p>
<pre><code>one
four
</code></pre>
<p>This block is composed of 2</p>
<pre><code>two
</code></pre>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p><span>test</span>:</p>
</body></html>

View file

@ -0,0 +1,29 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
[test][]:
*** Output of inspect ***
md_el(:document,[md_par([md_link(["test"],"test"), ":"])],{},[])
*** Output of to_html ***
<p><span>test</span>:</p>
*** Output of to_latex ***
test:
*** Output of to_md ***
test:
*** Output of to_s ***
test:
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>[test][]:</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p class='class1' style='color:red'>hello</p>
<table class='class1' summary='Table summary' style='color:red'><thead><tr><th>h</th><th>h</th></tr></thead><tbody><tr><th scope='row' style='text-align: left;'> c1</th><td style='text-align: left;'>c2</td>
</tr></tbody></table></body></html>

View file

@ -0,0 +1,67 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
hello
{: summary="Table summary" .class1 style="color:red"}
h | h
----------|--
{:t} c1 | c2
{: summary="Table summary" .class1 style="color:red"}
{:t: scope="row"}
*** Output of inspect ***
md_el(:document,[
md_par(["hello"], [["summary", "Table summary"], [:class, "class1"], ["style", "color:red"]]),
md_el(:table,[
md_el(:head_cell,["h"],{},[]),
md_el(:head_cell,["h"],{},[]),
md_el(:cell,[" c1"],{},[[:ref, "t"]]),
md_el(:cell,["c2"],{},[])
],{:align=>[:left, :left]},[["summary", "Table summary"], [:class, "class1"], ["style", "color:red"]]),
md_el(:ald,[],{:ald=>[["scope", "row"]],:ald_id=>"t"},[])
],{},[])
*** Output of to_html ***
<p class='class1' style='color:red'>hello</p>
<table class='class1' summary='Table summary' style='color:red'><thead><tr><th>h</th><th>h</th></tr></thead><tbody><tr><th scope='row' style='text-align: left;'> c1</th><td style='text-align: left;'>c2</td>
</tr></tbody></table>
*** Output of to_latex ***
hello
\begin{tabular}{l|l}
h&h\\
\hline
c1&c2\\
\end{tabular}
*** Output of to_md ***
hello
hh c1c2
*** Output of to_s ***
hellohh c1c2
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>hello
{: summary="Table summary" .class1 style="color:red"}</p>
<p>h | h
----------|--
{:t} c1 | c2
{: summary="Table summary" .class1 style="color:red"}</p>
<p>{:t: scope="row"}</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Here is an example of AppleScript:</p>
<pre><code>tell application &quot;Foo&quot;
beep
end tell
tab</code></pre>
</body></html>

View file

@ -0,0 +1,53 @@
Comment
*** Parameters: ***
{}
*** Markdown input: ***
Here is an example of AppleScript:
tell application "Foo"
beep
end tell
tab
*** Output of inspect ***
md_el(:document,[
md_par(["Here is an example of AppleScript:"]),
md_el(:code,[],{:raw_code=>"tell application \"Foo\"\n beep\nend tell\n\ttab"},[])
],{},[])
*** Output of to_html ***
<p>Here is an example of AppleScript:</p>
<pre><code>tell application &quot;Foo&quot;
beep
end tell
tab</code></pre>
*** Output of to_latex ***
Here is an example of AppleScript:
\begin{verbatim}tell application "Foo"
beep
end tell
tab\end{verbatim}
*** Output of to_md ***
Here is an example of AppleScript:
*** Output of to_s ***
Here is an example of AppleScript:
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Here is an example of AppleScript:</p>
<pre><code>tell application "Foo"
beep
end tell
tab
</code></pre>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<blockquote>
<p>Code</p>
<pre><code>Ciao</code></pre>
</blockquote>
</body></html>

View file

@ -0,0 +1,46 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
> Code
>
> Ciao
*** Output of inspect ***
md_el(:document,[
md_el(:quote,[md_par(["Code"]), md_el(:code,[],{:raw_code=>"Ciao"},[])],{},[])
],{},[])
*** Output of to_html ***
<blockquote>
<p>Code</p>
<pre><code>Ciao</code></pre>
</blockquote>
*** Output of to_latex ***
\begin{quote}%
Code
\begin{verbatim}Ciao\end{verbatim}
\end{quote}
*** Output of to_md ***
Code
*** Output of to_s ***
Code
*** EOF ***
OK!
*** Output of Markdown.pl ***
<blockquote>
<p>Code</p>
<pre><code>Ciao
</code></pre>
</blockquote>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>This is code (4 spaces):</p>
<pre><code>Code</code></pre>
<p>This is not code</p>
<pre><code>Code</code></pre>
<p>This is code (1 tab):</p>
<pre><code>Code</code></pre>
<p>This is not code</p>
<pre><code>Code</code></pre>
</body></html>

View file

@ -0,0 +1,102 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This is code (4 spaces):
Code
This is not code
Code
This is code (1 tab):
Code
This is not code
Code
*** Output of inspect ***
md_el(:document,[
md_par(["This is code (4 spaces):"]),
md_el(:code,[],{:raw_code=>"Code"},[]),
md_par(["This is not code"]),
md_el(:code,[],{:raw_code=>"Code"},[]),
md_par(["This is code (1 tab):"]),
md_el(:code,[],{:raw_code=>"Code"},[]),
md_par(["This is not code"]),
md_el(:code,[],{:raw_code=>"Code"},[])
],{},[])
*** Output of to_html ***
<p>This is code (4 spaces):</p>
<pre><code>Code</code></pre>
<p>This is not code</p>
<pre><code>Code</code></pre>
<p>This is code (1 tab):</p>
<pre><code>Code</code></pre>
<p>This is not code</p>
<pre><code>Code</code></pre>
*** Output of to_latex ***
This is code (4 spaces):
\begin{verbatim}Code\end{verbatim}
This is not code
\begin{verbatim}Code\end{verbatim}
This is code (1 tab):
\begin{verbatim}Code\end{verbatim}
This is not code
\begin{verbatim}Code\end{verbatim}
*** Output of to_md ***
This is code (4 spaces):
This is not code
This is code (1 tab):
This is not code
*** Output of to_s ***
This is code (4 spaces):This is not codeThis is code (1 tab):This is not code
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>This is code (4 spaces):</p>
<pre><code>Code
</code></pre>
<p>This is not code</p>
<pre><code>Code
</code></pre>
<p>This is code (1 tab):</p>
<pre><code>Code
</code></pre>
<p>This is not code</p>
<pre><code>Code
</code></pre>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<ol>
<li>abcd efgh ijkl</li>
</ol>
</body></html>

View file

@ -0,0 +1,42 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
1. abcd
efgh
ijkl
*** Output of inspect ***
md_el(:document,[
md_el(:ol,[md_el(:li_span,["abcd efgh ijkl"],{:want_my_paragraph=>false},[])],{},[])
],{},[])
*** Output of to_html ***
<ol>
<li>abcd efgh ijkl</li>
</ol>
*** Output of to_latex ***
\begin{enumerate}%
\item abcd efgh ijkl
\end{enumerate}
*** Output of to_md ***
1. abcd efgh ijkl
*** Output of to_s ***
abcd efgh ijkl
*** EOF ***
OK!
*** Output of Markdown.pl ***
<ol>
<li>abcd
efgh
ijkl</li>
</ol>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p><em>Hello!</em> how are <strong>you</strong>?</p>
</body></html>

View file

@ -0,0 +1,28 @@
Simple test for emphasis.
*** Parameters: ***
{}
*** Markdown input: ***
*Hello!* how are **you**?
*** Output of inspect ***
md_el(:document,[md_par([md_em(["Hello!"]), " how are ", md_strong(["you"]), "?"])],{},[])
*** Output of to_html ***
<p><em>Hello!</em> how are <strong>you</strong>?</p>
*** Output of to_latex ***
\emph{Hello!} how are \textbf{you}?
*** Output of to_md ***
Hello!how are you?
*** Output of to_s ***
Hello! how are you?
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p><em>Hello!</em> how are <strong>you</strong>?</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>This is an email address: <a href='mailto:andrea@invalid.it'>&#097;&#110;&#100;&#114;&#101;&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
</body></html>

View file

@ -0,0 +1,33 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This is an email address: <andrea@invalid.it>
*** Output of inspect ***
md_el(:document,[
md_par(["This is an email address: ", md_email("andrea@invalid.it")])
],{},[])
*** Output of to_html ***
<p>This is an email address: <a href='mailto:andrea@invalid.it'>&#097;&#110;&#100;&#114;&#101;&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
*** Output of to_latex ***
This is an email address: \href{mailto:andrea@invalid.it}{andrea\char64invalid\char46it}
*** Output of to_md ***
This is an email address:
*** Output of to_s ***
This is an email address:
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>This is an email address: <a href="&#x6D;&#97;&#x69;&#x6C;&#116;&#x6F;:&#97;&#x6E;&#x64;&#114;&#x65;&#97;&#64;&#105;&#110;&#118;&#97;li&#100;&#46;&#x69;&#116;">&#97;&#x6E;&#x64;&#114;&#x65;&#97;&#64;&#105;&#110;&#118;&#97;li&#100;&#46;&#x69;&#116;</a></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>This is iso-8859-1: àèìàù.</p>
</body></html>

View file

@ -0,0 +1,38 @@
Encoding: iso-8859-1
*** Parameters: ***
{}
*** Markdown input: ***
Encoding: iso-8859-1
This is iso-8859-1: àèìàù.
*** Output of inspect ***
md_el(:document,[
md_par([
"This is iso-8859-1: \303\203\302\240\303\203\302\250\303\203\302\254\303\203\302\240\303\203\302\271."
])
],{},[])
*** Output of to_html ***
<p>This is iso-8859-1: àèìàù.</p>
*** Output of to_latex ***
This is iso-8859-1: àèìàù.
*** Output of to_md ***
This is iso-8859-1:
àèìàù.
*** Output of to_s ***
This is iso-8859-1: àèìàù.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Encoding: iso-8859-1</p>
<p>This is iso-8859-1: àèìàù.</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Japanese: マルク</p>
</body></html>

View file

@ -0,0 +1,33 @@
Write a comment abouth the test here.
*** Parameters: ***
{:italian=>"\303\240\303\250\303\254\303\262\303\271."}
*** Markdown input: ***
Italian: àèìòù.
Japanese: マルク
*** Output of inspect ***
md_el(:document,[md_par(["Japanese: \343\203\236\343\203\253\343\202\257"])],{},[])
*** Output of to_html ***
<p>Japanese: マルク</p>
*** Output of to_latex ***
Japanese: マルク
*** Output of to_md ***
Japanese: マルク
*** Output of to_s ***
Japanese: マルク
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Italian: àèìòù.</p>
<p>Japanese: マルク</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Maruku translates HTML entities to the equivalent in LaTeX:</p>
<table><thead><tr><th>Entity</th><th>Result</th></tr></thead><tbody><tr><td style='text-align: left;'><code>&amp;copy;</code></td><td style='text-align: left;'>&#169;</td>
</tr><tr><td style='text-align: left;'><code>&amp;pound;</code></td><td style='text-align: left;'>&#163;</td>
</tr><tr><td style='text-align: left;'><code>a&amp;nbsp;b</code></td><td style='text-align: left;'>a&#160;b</td>
</tr><tr><td style='text-align: left;'><code>&amp;lambda;</code></td><td style='text-align: left;'>&#955;</td>
</tr><tr><td style='text-align: left;'><code>&amp;mdash;</code></td><td style='text-align: left;'>&#8212;</td>
</tr></tbody></table>
<p>Entity-substitution does not happen in code blocks or inline code.</p>
<p>The following should not be translated:</p>
<pre><code>&amp;copy;</code></pre>
<p>It should read just like this: <code>&amp;copy;</code>.</p>
</body></html>

View file

@ -0,0 +1,124 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
Maruku translates HTML entities to the equivalent in LaTeX:
Entity | Result
------------|----------
`&copy;` | &copy;
`&pound;` | &pound;
`a&nbsp;b` | a&nbsp;b
`&lambda;` | &lambda;
`&mdash;` | &mdash;
Entity-substitution does not happen in code blocks or inline code.
The following should not be translated:
&copy;
It should read just like this: `&copy;`.
*** Output of inspect ***
md_el(:document,[
md_par(["Maruku translates HTML entities to the equivalent in LaTeX:"]),
md_el(:table,[
md_el(:head_cell,["Entity"],{},[]),
md_el(:head_cell,["Result"],{},[]),
md_el(:cell,[md_code("&copy;")],{},[]),
md_el(:cell,[md_entity("copy")],{},[]),
md_el(:cell,[md_code("&pound;")],{},[]),
md_el(:cell,[md_entity("pound")],{},[]),
md_el(:cell,[md_code("a&nbsp;b")],{},[]),
md_el(:cell,["a", md_entity("nbsp"), "b"],{},[]),
md_el(:cell,[md_code("&lambda;")],{},[]),
md_el(:cell,[md_entity("lambda")],{},[]),
md_el(:cell,[md_code("&mdash;")],{},[]),
md_el(:cell,[md_entity("mdash")],{},[])
],{:align=>[:left, :left]},[]),
md_par([
"Entity-substitution does not happen in code blocks or inline code."
]),
md_par(["The following should not be translated:"]),
md_el(:code,[],{:raw_code=>"&copy;"},[]),
md_par(["It should read just like this: ", md_code("&copy;"), "."])
],{},[])
*** Output of to_html ***
<p>Maruku translates HTML entities to the equivalent in LaTeX:</p>
<table><thead><tr><th>Entity</th><th>Result</th></tr></thead><tbody><tr><td style='text-align: left;'><code>&amp;copy;</code></td><td style='text-align: left;'>&#169;</td>
</tr><tr><td style='text-align: left;'><code>&amp;pound;</code></td><td style='text-align: left;'>&#163;</td>
</tr><tr><td style='text-align: left;'><code>a&amp;nbsp;b</code></td><td style='text-align: left;'>a&#160;b</td>
</tr><tr><td style='text-align: left;'><code>&amp;lambda;</code></td><td style='text-align: left;'>&#955;</td>
</tr><tr><td style='text-align: left;'><code>&amp;mdash;</code></td><td style='text-align: left;'>&#8212;</td>
</tr></tbody></table>
<p>Entity-substitution does not happen in code blocks or inline code.</p>
<p>The following should not be translated:</p>
<pre><code>&amp;copy;</code></pre>
<p>It should read just like this: <code>&amp;copy;</code>.</p>
*** Output of to_latex ***
Maruku translates HTML entities to the equivalent in \LaTeX\xspace :
\begin{tabular}{l|l}
Entity&Result\\
\hline
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38copy\char59}}&\copyright{}\\
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38pound\char59}}&\pounds{}\\
{\colorbox[rgb]{1.00,0.93,1.00}{\tt a\char38nbsp\char59b}}&a~{}b\\
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38lambda\char59}}&$\lambda${}\\
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38mdash\char59}}&---{}\\
\end{tabular}
Entity-substitution does not happen in code blocks or inline code.
The following should not be translated:
\begin{verbatim}&copy;\end{verbatim}
It should read just like this: {\colorbox[rgb]{1.00,0.93,1.00}{\tt \char38copy\char59}}.
*** Output of to_md ***
Maruku translates HTML entities to the
equivalent in LaTeX:
EntityResultabEntity-substitution does not happen in
code blocks or inline code.
The following should not be translated:
It should read just like this: .
*** Output of to_s ***
Maruku translates HTML entities to the equivalent in LaTeX:EntityResultabEntity-substitution does not happen in code blocks or inline code.The following should not be translated:It should read just like this: .
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Maruku translates HTML entities to the equivalent in LaTeX:</p>
<p>Entity | Result
------------|----------
<code>&amp;copy;</code> | &copy;
<code>&amp;pound;</code> | &pound;
<code>a&amp;nbsp;b</code> | a&nbsp;b
<code>&amp;lambda;</code> | &lambda;
<code>&amp;mdash;</code> | &mdash;</p>
<p>Entity-substitution does not happen in code blocks or inline code.</p>
<p>The following should not be translated:</p>
<pre><code>&amp;copy;
</code></pre>
<p>It should read just like this: <code>&amp;copy;</code>.</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * &lt;- due asterischi-&gt; * , un underscore-&gt; _ , <em>emphasis</em>, incre<em>dible</em>e!</p>
<p>This is <code>Code with a special: -&gt; ` &lt;-</code>(after)</p>
<p><code>Start </code> of paragraph</p>
<p>End of <code>paragraph </code></p>
</body></html>

View file

@ -0,0 +1,89 @@
This should threat the last as a literal asterisk.
*** Parameters: ***
{:on_error=>:warning}
*** Markdown input: ***
Hello: ! \! \` \{ \} \[ \] \( \) \# \. \! * \* *
Ora, *emphasis*, **bold**, * <- due asterischi-> * , un underscore-> _ , _emphasis_,
incre*dible*e!
This is ``Code with a special: -> ` <- ``(after)
`Start ` of paragraph
End of `paragraph `
*** Output of inspect ***
md_el(:document,[
md_par(["Hello: ! ! ` { } [ ] ( ) # . ! * * *"]),
md_par([
"Ora, ",
md_em(["emphasis"]),
", ",
md_strong(["bold"]),
", * <- due asterischi-> * , un underscore-> _ , ",
md_em(["emphasis"]),
", incre",
md_em(["dible"]),
"e!"
]),
md_par(["This is ", md_code("Code with a special: -> ` <-"), "(after)"]),
md_par([md_code("Start "), " of paragraph"]),
md_par(["End of ", md_code("paragraph ")])
],{},[])
*** Output of to_html ***
<p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * &lt;- due asterischi-&gt; * , un underscore-&gt; _ , <em>emphasis</em>, incre<em>dible</em>e!</p>
<p>This is <code>Code with a special: -&gt; ` &lt;-</code>(after)</p>
<p><code>Start </code> of paragraph</p>
<p>End of <code>paragraph </code></p>
*** Output of to_latex ***
Hello: ! ! ` \{ \} [ ] ( ) \# . ! * * *
Ora, \emph{emphasis}, \textbf{bold}, * {\tt \char60}- due asterischi-{\tt \char62} * , un underscore-{\tt \char62} \_ , \emph{emphasis}, incre\emph{dible}e!
This is {\colorbox[rgb]{1.00,0.93,1.00}{\tt Code~with~a~special\char58~\char45\char62~\char96~\char60\char45}}(after)
{\colorbox[rgb]{1.00,0.93,1.00}{\tt Start~}} of paragraph
End of {\colorbox[rgb]{1.00,0.93,1.00}{\tt paragraph~}}
*** Output of to_md ***
Hello: ! ! ` { } [ ] ( ) # . ! * * *
Ora, emphasis, bold, * <- due
asterischi-> * , un underscore-> _ ,
emphasis, incre diblee!
This is (after)
of paragraph
End of
*** Output of to_s ***
Hello: ! ! ` { } [ ] ( ) # . ! * * *Ora, emphasis, bold, * <- due asterischi-> * , un underscore-> _ , emphasis, incrediblee!This is (after) of paragraphEnd of
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Hello: ! ! ` { } [ ] ( ) # . ! * * *</p>
<p>Ora, <em>emphasis</em>, <strong>bold</strong>, * &lt;- due asterischi-> * , un underscore-> _ , <em>emphasis</em>,
incre<em>dible</em>e!</p>
<p>This is <code>Code with a special: -&gt; ` &lt;-</code>(after)</p>
<p><code>Start</code> of paragraph</p>
<p>End of <code>paragraph</code></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title><link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body>
<dl>
<dt>Apple</dt>
<dd>Pomaceous fruit of plants of the genus Malus in the family Rosaceae.</dd>
<dt>Orange</dt>
<dd>The fruit of an evergreen tree of the genus Citrus.</dd>
</dl>
</body></html>

View file

@ -0,0 +1,72 @@
Write a comment abouth the test here.
*** Parameters: ***
{:css=>"style.css"}
*** Markdown input: ***
CSS: style.css
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
Orange
: The fruit of an evergreen tree of the genus Citrus.
*** Output of inspect ***
md_el(:document,[
md_el(:definition_list,[
md_el(:definition,[
md_el(:definition_term,["Apple"],{},[]),
md_el(:definition_data,[
"Pomaceous fruit of plants of the genus Malus in the family Rosaceae."
],{},[])
],{:definitions=>[md_el(:definition_data,[
"Pomaceous fruit of plants of the genus Malus in the family Rosaceae."
],{},[])],:terms=>[md_el(:definition_term,["Apple"],{},[])],:want_my_paragraph=>false},[]),
md_el(:definition,[
md_el(:definition_term,["Orange"],{},[]),
md_el(:definition_data,["The fruit of an evergreen tree of the genus Citrus."],{},[])
],{:definitions=>[md_el(:definition_data,["The fruit of an evergreen tree of the genus Citrus."],{},[])],:terms=>[md_el(:definition_term,["Orange"],{},[])],:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
<dl>
<dt>Apple</dt>
<dd>Pomaceous fruit of plants of the genus Malus in the family Rosaceae.</dd>
<dt>Orange</dt>
<dd>The fruit of an evergreen tree of the genus Citrus.</dd>
</dl>
*** Output of to_latex ***
\begin{description}
\item[Apple] Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
\item[Orange] The fruit of an evergreen tree of the genus Citrus.
\end{description}
*** Output of to_md ***
ApplePomaceous fruit of plants of the genus Malus in the family Rosaceae.OrangeThe fruit of an evergreen tree of the genus Citrus.
*** Output of to_s ***
ApplePomaceous fruit of plants of the genus Malus in the family Rosaceae.OrangeThe fruit of an evergreen tree of the genus Citrus.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>CSS: style.css</p>
<p>Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.</p>
<p>Orange
: The fruit of an evergreen tree of the genus Citrus.</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>Header 1</title></head>
<body>
<h1 id='header1'>Header 1</h1>
<h2 id='header2'>Header 2</h2>
<h3 id='header3'>Header 3</h3>
<p>Then you can create links to different parts of the same document like this:</p>
<p><a href='#header1'>Link back to header 1</a>, <a href='#header2'>Link back to header 2</a>, <a href='#header3'>Link back to header 3</a></p>
</body></html>

View file

@ -0,0 +1,86 @@
Write a comment abouth the test here.
*** Parameters: ***
{:title=>"Header 1"}
*** Markdown input: ***
Header 1 {#header1}
========
Header 2 {#header2}
--------
### Header 3 ### {#header3}
Then you can create links to different parts of the same document like this:
[Link back to header 1](#header1),
[Link back to header 2](#header2),
[Link back to header 3](#header3)
*** Output of inspect ***
md_el(:document,[
md_el(:header,["Header 1"],{:level=>1},[[:id, "header1"]]),
md_el(:header,["Header 2"],{:level=>2},[[:id, "header2"]]),
md_el(:header,["Header 3"],{:level=>3},[[:id, "header3"]]),
md_par([
"Then you can create links to different parts of the same document like this:"
]),
md_par([
md_im_link(["Link back to header 1"], "#header1", nil),
", ",
md_im_link(["Link back to header 2"], "#header2", nil),
", ",
md_im_link(["Link back to header 3"], "#header3", nil)
])
],{},[])
*** Output of to_html ***
<h1 id='header1'>Header 1</h1>
<h2 id='header2'>Header 2</h2>
<h3 id='header3'>Header 3</h3>
<p>Then you can create links to different parts of the same document like this:</p>
<p><a href='#header1'>Link back to header 1</a>, <a href='#header2'>Link back to header 2</a>, <a href='#header3'>Link back to header 3</a></p>
*** Output of to_latex ***
\hypertarget{header1}{}\section*{{Header 1}}\label{header1}
\hypertarget{header2}{}\subsection*{{Header 2}}\label{header2}
\hypertarget{header3}{}\subsubsection*{{Header 3}}\label{header3}
Then you can create links to different parts of the same document like this:
\hyperlink{header1}{Link back to header 1}, \hyperlink{header2}{Link back to header 2}, \hyperlink{header3}{Link back to header 3}
*** Output of to_md ***
Header 1Header 2Header 3Then you can create links to different
parts of the same document like this:
Link back to header 1,
Link back to header 2,
Link back to header 3
*** Output of to_s ***
Header 1Header 2Header 3Then you can create links to different parts of the same document like this:Link back to header 1, Link back to header 2, Link back to header 3
*** EOF ***
OK!
*** Output of Markdown.pl ***
<h1>Header 1 {#header1}</h1>
<h2>Header 2 {#header2}</h2>
<h3>Header 3 ### {#header3}</h3>
<p>Then you can create links to different parts of the same document like this:</p>
<p><a href="#header1">Link back to header 1</a>,
<a href="#header2">Link back to header 2</a>,
<a href="#header3">Link back to header 3</a></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title><link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body><table><thead><tr><th>First Header</th><th>Second Header</th></tr></thead><tbody><tr><td style='text-align: left;'>Content Cell</td><td style='text-align: left;'>Content Cell</td>
</tr><tr><td style='text-align: left;'>Content Cell</td><td style='text-align: left;'>Content Cell</td>
</tr></tbody></table></body></html>

View file

@ -0,0 +1,55 @@
Write a comment abouth the test here.
*** Parameters: ***
{:css=>"style.css"}
*** Markdown input: ***
CSS: style.css
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell
*** Output of inspect ***
md_el(:document,[
md_el(:table,[
md_el(:head_cell,["First Header"],{},[]),
md_el(:head_cell,["Second Header"],{},[]),
md_el(:cell,["Content Cell"],{},[]),
md_el(:cell,["Content Cell"],{},[]),
md_el(:cell,["Content Cell"],{},[]),
md_el(:cell,["Content Cell"],{},[])
],{:align=>[:left, :left]},[])
],{},[])
*** Output of to_html ***
<table><thead><tr><th>First Header</th><th>Second Header</th></tr></thead><tbody><tr><td style='text-align: left;'>Content Cell</td><td style='text-align: left;'>Content Cell</td>
</tr><tr><td style='text-align: left;'>Content Cell</td><td style='text-align: left;'>Content Cell</td>
</tr></tbody></table>
*** Output of to_latex ***
\begin{tabular}{l|l}
First Header&Second Header\\
\hline
Content Cell&Content Cell\\
Content Cell&Content Cell\\
\end{tabular}
*** Output of to_md ***
First HeaderSecond HeaderContent CellContent CellContent CellContent Cell
*** Output of to_s ***
First HeaderSecond HeaderContent CellContent CellContent CellContent Cell
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>CSS: style.css</p>
<p>First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>That&#8217;s some text with a footnote <sup id='fnref:4'><a href='#fn:4' rel='footnote'>4</a></sup> and another <sup id='fnref:5'><a href='#fn:5' rel='footnote'>5</a></sup> and another <sup id='fnref:6'><a href='#fn:6' rel='footnote'>6</a></sup>.</p>
<p>This is not a footnote.</p>
<div class='footnotes'><hr /><ol><li id='fn:1'>
<p>And that&#8217;s the footnote. This is second sentence (same paragraph).</p>
<a href='#fnref:1' rev='footnote'>&#8617;</a></li><li id='fn:2'>
<p>This is the very long one.</p>
<p>That&#8217;s the second paragraph.</p>
<a href='#fnref:2' rev='footnote'>&#8617;</a></li><li id='fn:3'>
<p>And that&#8217;s the footnote.</p>
<p>That&#8217;s the second paragraph of the footnote.</p>
<a href='#fnref:3' rev='footnote'>&#8617;</a></li><li id='fn:4'>
<p>And that&#8217;s the footnote. This is second sentence (same paragraph).</p>
<a href='#fnref:4' rev='footnote'>&#8617;</a></li><li id='fn:5'>
<p>This is the very long one.</p>
<p>That&#8217;s the second paragraph.</p>
<a href='#fnref:5' rev='footnote'>&#8617;</a></li><li id='fn:6'>
<p>And that&#8217;s the footnote.</p>
<p>That&#8217;s the second paragraph of the footnote.</p>
<a href='#fnref:6' rev='footnote'>&#8617;</a></li></ol></div></body></html>

View file

@ -0,0 +1,126 @@
Write a comment abouth the test here.
*** Parameters: ***
{:footnotes_used=>["^b", "^c", "^a"]}
*** Markdown input: ***
That's some text with a footnote [^b] and another [^c] and another [^a].
[^a]: And that's the footnote.
That's the second paragraph of the footnote.
[^b]: And that's the footnote.
This is second sentence (same paragraph).
[^c]:
This is the very long one.
That's the second paragraph.
This is not a footnote.
*** Output of inspect ***
md_el(:document,[
md_par([
"That",
md_entity("rsquo"),
"s some text with a footnote ",
md_foot_ref("^b"),
" and another ",
md_foot_ref("^c"),
" and another ",
md_foot_ref("^a"),
"."
]),
md_el(:footnote,[
md_par(["And that", md_entity("rsquo"), "s the footnote."]),
md_par([
"That",
md_entity("rsquo"),
"s the second paragraph of the footnote."
])
],{:footnote_id=>"^a"},[]),
md_el(:footnote,[
md_par([
"And that",
md_entity("rsquo"),
"s the footnote. This is second sentence (same paragraph)."
])
],{:footnote_id=>"^b"},[]),
md_el(:footnote,[
md_par(["This is the very long one."]),
md_par(["That", md_entity("rsquo"), "s the second paragraph."])
],{:footnote_id=>"^c"},[]),
md_par(["This is not a footnote."])
],{},[])
*** Output of to_html ***
<p>That&#8217;s some text with a footnote <sup id='fnref:1'><a href='#fn:1' rel='footnote'>1</a></sup> and another <sup id='fnref:2'><a href='#fn:2' rel='footnote'>2</a></sup> and another <sup id='fnref:3'><a href='#fn:3' rel='footnote'>3</a></sup>.</p>
<p>This is not a footnote.</p>
<div class='footnotes'><hr /><ol><li id='fn:1'>
<p>And that&#8217;s the footnote. This is second sentence (same paragraph).</p>
<a href='#fnref:1' rev='footnote'>&#8617;</a></li><li id='fn:2'>
<p>This is the very long one.</p>
<p>That&#8217;s the second paragraph.</p>
<a href='#fnref:2' rev='footnote'>&#8617;</a></li><li id='fn:3'>
<p>And that&#8217;s the footnote.</p>
<p>That&#8217;s the second paragraph of the footnote.</p>
<a href='#fnref:3' rev='footnote'>&#8617;</a></li></ol></div>
*** Output of to_latex ***
That'{}s some text with a footnote \footnote{And that'{}s the footnote. This is second sentence (same paragraph).} and another \footnote{This is the very long one.
That'{}s the second paragraph.} and another \footnote{And that'{}s the footnote.
That'{}s the second paragraph of the footnote.} .
This is not a footnote.
*** Output of to_md ***
That s some text with a footnote and
another and another .
And that s the footnote.
That s the second paragraph of the
footnote.
And that s the footnote. This is second
sentence (same paragraph).
This is the very long one.
That s the second paragraph.
This is not a footnote.
*** Output of to_s ***
Thats some text with a footnote and another and another .And thats the footnote.Thats the second paragraph of the footnote.And thats the footnote. This is second sentence (same paragraph).This is the very long one.Thats the second paragraph.This is not a footnote.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>That's some text with a footnote [^b] and another [^c] and another [^a].</p>
<p>[^a]: And that's the footnote.</p>
<pre><code>That's the second paragraph of the footnote.
</code></pre>
<p>[^b]: And that's the footnote.
This is second sentence (same paragraph).</p>
<p>[^c]:
This is the very long one.</p>
<pre><code>That's the second paragraph.
</code></pre>
<p>This is not a footnote.</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title>A title with emphasis</title></head>
<body>
<h1 id='a_title_with_emphasis'>A title with <em>emphasis</em></h1>
<h2 id='a_title_with_emphasis'>A title with <em>emphasis</em></h2>
<h4 id='a_title_with_emphasis'>A title with <em>emphasis</em></h4>
</body></html>

View file

@ -0,0 +1,54 @@
Write a comment abouth the test here.
*** Parameters: ***
{:title=>"A title with emphasis"}
*** Markdown input: ***
A title with *emphasis*
=======================
A title with *emphasis*
-----------------------
#### A title with *emphasis* ####
*** Output of inspect ***
md_el(:document,[
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>1},[]),
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>2},[]),
md_el(:header,["A title with ", md_em(["emphasis"])],{:level=>4},[])
],{},[])
*** Output of to_html ***
<h1 id='a_title_with_emphasis'>A title with <em>emphasis</em></h1>
<h2 id='a_title_with_emphasis'>A title with <em>emphasis</em></h2>
<h4 id='a_title_with_emphasis'>A title with <em>emphasis</em></h4>
*** Output of to_latex ***
\hypertarget{a_title_with_emphasis}{}\section*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
\hypertarget{a_title_with_emphasis}{}\subsection*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
\hypertarget{a_title_with_emphasis}{}\paragraph*{{A title with \emph{emphasis}}}\label{a_title_with_emphasis}
*** Output of to_md ***
A title with emphasisA title with emphasisA title with emphasis
*** Output of to_s ***
A title with emphasisA title with emphasisA title with emphasis
*** EOF ***
OK!
*** Output of Markdown.pl ***
<h1>A title with <em>emphasis</em></h1>
<h2>A title with <em>emphasis</em></h2>
<h4>A title with <em>emphasis</em></h4>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Examples of numeric character references include &#169; or &#169; for the copyright symbol, &#913; or &#913; for the Greek capital letter alpha, and &#1575; or &#1575; for the Arabic letter alef.</p>
</body></html>

View file

@ -0,0 +1,50 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
Examples of numeric character references include &#169; or &#xA9; for the copyright symbol, &#913; or &#x391; for the Greek capital letter alpha, and &#1575; or &#x627; for the Arabic letter alef.
*** Output of inspect ***
md_el(:document,[
md_par([
"Examples of numeric character references include ",
md_entity(169),
" or ",
md_entity(169),
" for the copyright symbol, ",
md_entity(913),
" or ",
md_entity(913),
" for the Greek capital letter alpha, and ",
md_entity(1575),
" or ",
md_entity(1575),
" for the Arabic letter alef."
])
],{},[])
*** Output of to_html ***
<p>Examples of numeric character references include &#169; or &#169; for the copyright symbol, &#913; or &#913; for the Greek capital letter alpha, and &#1575; or &#1575; for the Arabic letter alef.</p>
*** Output of to_latex ***
Examples of numeric character references include \copyright{} or \copyright{} for the copyright symbol, $A${} or $A${} for the Greek capital letter alpha, and or for the Arabic letter alef.
*** Output of to_md ***
Examples of numeric character
references include or for the copyright
symbol, or for the Greek capital letter
alpha, and or for the Arabic letter
alef.
*** Output of to_s ***
Examples of numeric character references include or for the copyright symbol, or for the Greek capital letter alpha, and or for the Arabic letter alef.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Examples of numeric character references include &#169; or &#xA9; for the copyright symbol, &#913; or &#x391; for the Greek capital letter alpha, and &#1575; or &#x627; for the Arabic letter alef.</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body><hr /><hr /><hr /><hr /><hr /></body></html>

View file

@ -0,0 +1,60 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
* * *
***
*****
- - -
---------------------------------------
*** Output of inspect ***
md_el(:document,[
md_el(:hrule,[],{},[]),
md_el(:hrule,[],{},[]),
md_el(:hrule,[],{},[]),
md_el(:hrule,[],{},[]),
md_el(:hrule,[],{},[])
],{},[])
*** Output of to_html ***
<hr /><hr /><hr /><hr /><hr />
*** Output of to_latex ***
\vspace{.5em} \hrule \vspace{.5em}
\vspace{.5em} \hrule \vspace{.5em}
\vspace{.5em} \hrule \vspace{.5em}
\vspace{.5em} \hrule \vspace{.5em}
\vspace{.5em} \hrule \vspace{.5em}
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<hr />
<hr />
<hr />
<hr />
<hr />
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>One 123</p>
</body></html>

View file

@ -0,0 +1,38 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
One
<div></div>123
<div></div>123
*** Output of inspect ***
md_el(:document,[
md_par(["One ", md_html("<div></div>"), "123"]),
md_html("<div></div>")
],{},[])
*** Output of to_html ***
<p>One <div />123</p>
<div />
*** Output of to_latex ***
One 123
*** Output of to_md ***
One 123
*** Output of to_s ***
One 123
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>One
<div></div>123</p>
<p><div></div>123</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>taking part in which involve , , ,</p>
</body></html>

View file

@ -0,0 +1,47 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
taking part in <a href="http://sied.dis.uniroma1.it/">some arcane conspirations</a> which
involve <b href="http://www.flickr.com/photos/censi/70893277/">coffee</b>,
<a href="http://flickr.com/photos/censi/42775664/in/set-936677/">robots</a>,
<a href="http://www.flickr.com/photos/censi/42775888/in/set-936677/">sushi</a>,
*** Output of inspect ***
md_el(:document,[
md_par([
"taking part in ",
md_html("<a href=\"http://sied.dis.uniroma1.it/\">some arcane conspirations</a>"),
" which involve ",
md_html("<b href=\"http://www.flickr.com/photos/censi/70893277/\">coffee</b>"),
", ",
md_html("<a href=\"http://flickr.com/photos/censi/42775664/in/set-936677/\">robots</a>"),
", ",
md_html("<a href=\"http://www.flickr.com/photos/censi/42775888/in/set-936677/\">sushi</a>"),
","
])
],{},[])
*** Output of to_html ***
<p>taking part in <a href='http://sied.dis.uniroma1.it/'>some arcane conspirations</a> which involve <b href='http://www.flickr.com/photos/censi/70893277/'>coffee</b>, <a href='http://flickr.com/photos/censi/42775664/in/set-936677/'>robots</a>, <a href='http://www.flickr.com/photos/censi/42775888/in/set-936677/'>sushi</a>,</p>
*** Output of to_latex ***
taking part in which involve , , ,
*** Output of to_md ***
taking part in which involve , , ,
*** Output of to_s ***
taking part in which involve , , ,
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>taking part in <a href="http://sied.dis.uniroma1.it/">some arcane conspirations</a> which
involve <b href="http://www.flickr.com/photos/censi/70893277/">coffee</b>,
<a href="http://flickr.com/photos/censi/42775664/in/set-936677/">robots</a>,
<a href="http://www.flickr.com/photos/censi/42775888/in/set-936677/">sushi</a>,</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body /></html>

View file

@ -0,0 +1,42 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
<div class="frame">
<a class="photo" href="http://www.flickr.com/photos/censi/54757256/"><img alt=""
moz-do-not-send="true"
src="http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg" /></a>
</div>
*** Output of inspect ***
md_el(:document,[
md_html("<div class=\"frame\">\n\t<a class=\"photo\" href=\"http://www.flickr.com/photos/censi/54757256/\"><img alt=\"\"\n moz-do-not-send=\"true\"\n src=\"http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg\" /></a>\n</div>")
],{},[])
*** Output of to_html ***
<div class='frame'>
<a href='http://www.flickr.com/photos/censi/54757256/' class='photo'><img src='http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg' moz-do-not-send='true' alt='' /></a>
</div>
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<div class="frame">
<a class="photo" href="http://www.flickr.com/photos/censi/54757256/"><img alt=""
moz-do-not-send="true"
src="http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg" /></a>
</div>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body /></html>

View file

@ -0,0 +1,38 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
<div class="frame">
<a class="photo" href="http://www.flickr.com/photos/censi/88561568/" ><img moz-do-not-send="true" src="http://static.flickr.com/28/88561568_ab84d28245_m.jpg" width="240" height="180" alt="Aperitif" /></a>
</div>
*** Output of inspect ***
md_el(:document,[
md_html(" <div class=\"frame\">\n <a class=\"photo\" href=\"http://www.flickr.com/photos/censi/88561568/\" ><img moz-do-not-send=\"true\" src=\"http://static.flickr.com/28/88561568_ab84d28245_m.jpg\" width=\"240\" height=\"180\" alt=\"Aperitif\" /></a>\n </div>")
],{},[])
*** Output of to_html ***
<div class='frame'>
<a href='http://www.flickr.com/photos/censi/88561568/' class='photo'><img src='http://static.flickr.com/28/88561568_ab84d28245_m.jpg' height='180' moz-do-not-send='true' alt='Aperitif' width='240' /></a>
</div>
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p><div class="frame">
<a class="photo" href="http://www.flickr.com/photos/censi/88561568/" ><img moz-do-not-send="true" src="http://static.flickr.com/28/88561568_ab84d28245_m.jpg" width="240" height="180" alt="Aperitif" /></a>
</div></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></p>
<pre><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre lang='xml'><code class='xml' lang='xml'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre><code class='not_supported' lang='not_supported'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre><code class='xml' lang='xml'><span class='punct'>&lt;</span><span class='tag'>p</span><span class='punct'>&gt;</span>here&#39;s an apostrophe &amp; a quote &quot;<span class='punct'>&lt;/</span><span class='tag'>p</span><span class='punct'>&gt;</span></code></pre>
</body></html>

View file

@ -0,0 +1,82 @@
We must make sure that `&apos;` is always written as `&#39;`.
*** Parameters: ***
{} # params
*** Markdown input: ***
`<p>here's an apostrophe & a quote "</p>`
<p>here's an apostrophe & a quote "</p>
{:}
<p>here's an apostrophe & a quote "</p>
{:lang=xml}
<p>here's an apostrophe & a quote "</p>
{:html_use_syntax=true lang=not_supported}
<p>here's an apostrophe & a quote "</p>
{:html_use_syntax=true lang=xml}
*** Output of inspect ***
md_el(:document,[
md_par([md_code("<p>here's an apostrophe & a quote \"</p>")]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["lang", "xml"]]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "not_supported"]]),
md_el(:code,[],{:raw_code=>"<p>here's an apostrophe & a quote \"</p>"},[["html_use_syntax", "true"], ["lang", "xml"]])
],{},[])
*** Output of to_html ***
<p><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></p>
<pre><code>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre lang='xml'><code class='xml' lang='xml'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre><code class='not_supported' lang='not_supported'>&lt;p&gt;here&#39;s an apostrophe &amp; a quote &quot;&lt;/p&gt;</code></pre>
<pre><code class='xml' lang='xml'><span class='punct'>&lt;</span><span class='tag'>p</span><span class='punct'>&gt;</span>here&#39;s an apostrophe &amp; a quote &quot;<span class='punct'>&lt;/</span><span class='tag'>p</span><span class='punct'>&gt;</span></code></pre>
*** Output of to_latex ***
{\colorbox[rgb]{1.00,0.93,1.00}{\tt \char60p\char62here\char39s~an~apostrophe~\char38~a~quote~\char34\char60\char47p\char62}}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
\begin{verbatim}<p>here's an apostrophe & a quote "</p>\end{verbatim}
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;</code></p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:}</p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:lang=xml}</p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:html<em>use</em>syntax=true lang=not_supported}</p>
<pre><code>&lt;p&gt;here's an apostrophe &amp; a quote "&lt;/p&gt;
</code></pre>
<p>{:html<em>use</em>syntax=true lang=xml}</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>This page does not uilizes <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>I&#8217;ll say it one more time: this page does not use <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>This is double size: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
</body></html>

View file

@ -0,0 +1,114 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
This page does not uilizes ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss)
Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss "Title ok!")
Please mouseover to see the title: ![Cascading Style Sheets](http://jigsaw.w3.org/css-validator/images/vcss 'Title ok!')
I'll say it one more time: this page does not use ![Cascading Style Sheets] [css]
This is double size: ![Cascading Style Sheets] [css2]
[css]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute"
[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
style="border:0;width:188px;height:131px"
*** Output of inspect ***
md_el(:document,[
md_par([
"This page does not uilizes ",
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", nil)
]),
md_par([
"Please mouseover to see the title: ",
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
]),
md_par([
"Please mouseover to see the title: ",
md_im_image(["Cascading Style Sheets"], "http://jigsaw.w3.org/css-validator/images/vcss", "Title ok!")
]),
md_par([
"I",
md_entity("rsquo"),
"ll say it one more time: this page does not use ",
md_image(["Cascading Style Sheets"], "css")
]),
md_par([
"This is double size: ",
md_image(["Cascading Style Sheets"], "css2")
]),
md_ref_def("css", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"}),
md_ref_def("css2", "http://jigsaw.w3.org/css-validator/images/vcss", {:title=>"Optional title attribute"})
],{},[])
*** Output of to_html ***
<p>This page does not uilizes <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>Please mouseover to see the title: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>I&#8217;ll say it one more time: this page does not use <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
<p>This is double size: <img src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Cascading Style Sheets' /></p>
*** Output of to_latex ***
This page does not uilizes
Please mouseover to see the title:
Please mouseover to see the title:
I'{}ll say it one more time: this page does not use
This is double size:
*** Output of to_md ***
This page does not uilizes
Cascading Style Sheets
Please mouseover to see the title:
Cascading Style Sheets
Please mouseover to see the title:
Cascading Style Sheets
I ll say it one more time: this page
does not use Cascading Style Sheets
This is double size:
Cascading Style Sheets
*** Output of to_s ***
This page does not uilizes Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsPlease mouseover to see the title: Cascading Style SheetsIll say it one more time: this page does not use Cascading Style SheetsThis is double size: Cascading Style Sheets
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>This page does not uilizes <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="" /></p>
<p>Please mouseover to see the title: <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Title ok!" /></p>
<p>Please mouseover to see the title: <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Title ok!" /></p>
<p>I'll say it one more time: this page does not use <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Cascading Style Sheets" title="Optional title attribute" /></p>
<p>This is double size: ![Cascading Style Sheets] [css2]</p>
<p>[css2]: http://jigsaw.w3.org/css-validator/images/vcss "Optional title attribute" class=external
style="border:0;width:188px;height:131px"</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>This is an <img src='image.jpg' alt='image' />.</p>
<p>This is an <img src='image.jpg' alt='image' />.</p>
</body></html>

View file

@ -0,0 +1,46 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
This is an ![image][].
This is an ![image].
[image]: image.jpg
*** Output of inspect ***
md_el(:document,[
md_par(["This is an ", md_image(["image"], "image"), "."]),
md_par(["This is an ", md_image(["image"], "image"), "."]),
md_ref_def("image", "image.jpg", {:title=>nil})
],{},[])
*** Output of to_html ***
<p>This is an <img src='image.jpg' alt='image' />.</p>
<p>This is an <img src='image.jpg' alt='image' />.</p>
*** Output of to_latex ***
This is an .
This is an .
*** Output of to_md ***
This is an image.
This is an image.
*** Output of to_s ***
This is an image.This is an image.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>This is an <img src="image.jpg" alt="image" />.</p>
<p>This is an ![image].</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title><link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body>
<p>Input:</p>
<pre><code>&lt;em&gt;Emphasis&lt;/em&gt;</code></pre>
<p>Result: </p>
<p>Input:</p>
<pre><code>&lt;img src=&quot;http://jigsaw.w3.org/css-validator/images/vcss&quot;/&gt;</code></pre>
<p>Result on span: </p>
<p>Result alone:</p>
<p>Without closing:</p>
<p>The following is invalid HTML, and will generate an error:</p>
<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
&lt;table&gt;
&lt;td markdown=&quot;1&quot;&gt;This is *true* markdown text. (no par)&lt;/td&gt;
&lt;td markdown=&quot;block&quot;&gt;This is *true* markdown text. (par)&lt;/td&gt;
&lt;/tr&gt;</pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
&lt;/table&gt;</pre></body></html>

View file

@ -0,0 +1,260 @@
Write a comment abouth the test here.
*** Parameters: ***
{:css=>"style.css"}
*** Markdown input: ***
CSS: style.css
Input:
<em>Emphasis</em>
Result: <em>Emphasis</em>
Input:
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
Result alone:
<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>
Without closing:
<img src="http://jigsaw.w3.org/css-validator/images/vcss">
<div markdown="1">
This is *true* markdown text (paragraph)
<p markdown="1">
This is *true* markdown text (no paragraph)
</p>
<p markdown="block">
This is *true* markdown text (block paragraph)
</p>
</div>
<table>
<tr>
<td markdown="1">This is *true* markdown text. (no par)</td>
<td markdown="block">This is *true* markdown text. (par)</td>
</tr>
</table>
The following is invalid HTML, and will generate an error:
<table>
<td markdown="1">This is *true* markdown text. (no par)</td>
<td markdown="block">This is *true* markdown text. (par)</td>
</tr>
</table>
*** Output of inspect ***
md_el(:document,[
md_par(["Input:"]),
md_el(:code,[],{:raw_code=>"<em>Emphasis</em>"},[]),
md_par(["Result: ", md_html("<em>Emphasis</em>")]),
md_par(["Input:"]),
md_el(:code,[],{:raw_code=>"<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\"/>"},[]),
md_par([
"Result on span: ",
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />")
]),
md_par(["Result alone:"]),
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
md_par(["Without closing:"]),
md_html("<img src=\"http://jigsaw.w3.org/css-validator/images/vcss\" />"),
md_html("<div markdown=\"1\">\n\tThis is *true* markdown text (paragraph)\n\n\t<p markdown=\"1\">\n\t\tThis is *true* markdown text (no paragraph)\n\t</p>\n\t<p markdown=\"block\">\n\t\tThis is *true* markdown text (block paragraph)\n\t</p>\n</div>"),
md_html("<table>\n<tr>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>\n</table>"),
md_par(["The following is invalid HTML, and will generate an error:"]),
md_html("<table>\n<td markdown=\"1\">This is *true* markdown text. (no par)</td>\n<td markdown=\"block\">This is *true* markdown text. (par)</td>\n</tr>"),
md_html("</table>")
],{},[])
*** Output of to_html ***
<p>Input:</p>
<pre><code>&lt;em&gt;Emphasis&lt;/em&gt;</code></pre>
<p>Result: <em>Emphasis</em></p>
<p>Input:</p>
<pre><code>&lt;img src=&quot;http://jigsaw.w3.org/css-validator/images/vcss&quot;/&gt;</code></pre>
<p>Result on span: <img src='http://jigsaw.w3.org/css-validator/images/vcss' /></p>
<p>Result alone:</p>
<img src='http://jigsaw.w3.org/css-validator/images/vcss' />
<p>Without closing:</p>
<img src='http://jigsaw.w3.org/css-validator/images/vcss' /><div>
<p>
<p>This is</p>
<em>
<p>true</p>
</em>
<p>markdown text (paragraph)</p>
</p>
<p>
<p>
<p>This is</p>
<em>
<p>true</p>
</em>
<p>markdown text (no paragraph)</p>
</p>
</p>
<p>
<p>
<p>This is</p>
<em>
<p>true</p>
</em>
<p>markdown text (block paragraph)</p>
</p>
</p>
</div><table>
<tr>
<td>
<p>This is</p>
<em>
<p>true</p>
</em>
<p>markdown text. (no par)</p>
</td>
<td>
<p>This is</p>
<em>
<p>true</p>
</em>
<p>markdown text. (par)</p>
</td>
</tr>
</table>
<p>The following is invalid HTML, and will generate an error:</p>
<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
&lt;table&gt;
&lt;td markdown=&quot;1&quot;&gt;This is *true* markdown text. (no par)&lt;/td&gt;
&lt;td markdown=&quot;block&quot;&gt;This is *true* markdown text. (par)&lt;/td&gt;
&lt;/tr&gt;</pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
&lt;/table&gt;</pre>
*** Output of to_latex ***
Input:
\begin{verbatim}<em>Emphasis</em>\end{verbatim}
Result:
Input:
\begin{verbatim}<img src="http://jigsaw.w3.org/css-validator/images/vcss"/>\end{verbatim}
Result on span:
Result alone:
Without closing:
The following is invalid HTML, and will generate an error:
*** Output of to_md ***
Input:
Result:
Input:
Result on span:
Result alone:
Without closing:
The following is invalid HTML, and will
generate an error:
*** Output of to_s ***
Input:Result: Input:Result on span: Result alone:Without closing:The following is invalid HTML, and will generate an error:
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>CSS: style.css</p>
<p>Input:</p>
<pre><code>&lt;em&gt;Emphasis&lt;/em&gt;
</code></pre>
<p>Result: <em>Emphasis</em></p>
<p>Input:</p>
<pre><code>&lt;img src="http://jigsaw.w3.org/css-validator/images/vcss"/&gt;
</code></pre>
<p>Result on span: <img src="http://jigsaw.w3.org/css-validator/images/vcss"/></p>
<p>Result alone: </p>
<p><img src="http://jigsaw.w3.org/css-validator/images/vcss"/></p>
<p>Without closing:</p>
<p><img src="http://jigsaw.w3.org/css-validator/images/vcss"></p>
<div markdown="1">
This is *true* markdown text (paragraph)
<p markdown="1">
This is *true* markdown text (no paragraph)
</p>
<p markdown="block">
This is *true* markdown text (block paragraph)
</p>
</div>
<table>
<tr>
<td markdown="1">This is *true* markdown text. (no par)</td>
<td markdown="block">This is *true* markdown text. (par)</td>
</tr>
</table>
<p>The following is invalid HTML, and will generate an error:</p>
<table>
<td markdown="1">This is *true* markdown text. (no par)</td>
<td markdown="block">This is *true* markdown text. (par)</td>
</tr>
</table>
*** Output of Markdown.pl (parsed) ***
Error: #<REXML::ParseException: #<REXML::ParseException: Missing end tag for 'img' (got "p")
Line:
Position:
Last 80 unconsumed characters:
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow>
/sw/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
/sw/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
/sw/lib/ruby/1.8/rexml/document.rb:190:in `build'
/sw/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
bin/marutest:200:in `new'
bin/marutest:200:in `run_test'
bin/marutest:263:in `marutest'
bin/marutest:260:in `each'
bin/marutest:260:in `marutest'
bin/marutest:335
...
Missing end tag for 'img' (got "p")
Line:
Position:
Last 80 unconsumed characters:
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow
Line:
Position:
Last 80 unconsumed characters:
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body /></html>

View file

@ -0,0 +1,36 @@
*** Parameters: ***
{}
*** Markdown input: ***
<div markdown="1">Test **bold**</div>
<p markdown="1">Test **bold**</p>
*** Output of inspect ***
md_el(:document,[
md_html("<div markdown=\"1\">Test **bold**</div>"),
md_html("<p markdown=\"1\">Test **bold**</p>")
],{},[])
*** Output of to_html ***
<div>
<p>Test <strong>bold</strong></p>
</div><p>Test <strong>bold</strong></p>
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
<div markdown="1">Test **bold**</div>
<p markdown="1">Test **bold**</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://images.google.com' title='Google images'>Google images</a></p>
<p>Inline: <a href='http://google.com'>Google images</a></p>
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
<p>Search on <a href='http://www.gogole.com'>http://www.gogole.com</a> or <a href='http://Here.com'>http://Here.com</a> or ask <a href='mailto:bill@google.com'>&#098;&#105;&#108;&#108;&#064;&#103;&#111;&#111;&#103;&#108;&#101;&#046;&#099;&#111;&#109;</a> or you might ask bill@google.com.</p>
<p>If all else fails, ask <a href='http://www.google.com'>Google</a></p>
</body></html>

View file

@ -0,0 +1,197 @@
Write a comment abouth the test here.
*** Parameters: ***
{:on_error=>:warning}
*** Markdown input: ***
Search on [Google][]
Search on [Google] []
Search on [Google] [google]
Search on [Google] [Google]
Search on [Google images][]
Inline: [Google images](http://google.com)
Inline with title: [Google images](http://google.com "Title")
Inline with title: [Google images]( http://google.com "Title" )
Search on <http://www.gogole.com> or <http://Here.com> or ask <mailto:bill@google.com>
or you might ask bill@google.com.
If all else fails, ask [Google](http://www.google.com)
[google]: http://www.google.com
[google2]: http://www.google.com 'Single quotes'
[google3]: http://www.google.com "Double quotes"
[google4]: http://www.google.com (Parenthesis)
[Google Search]:
http://www.google.com "Google search"
[Google Images]:
http://images.google.com (Google images)
*** Output of inspect ***
md_el(:document,[
md_par(["Search on ", md_link(["Google"],"google")]),
md_par(["Search on ", md_link(["Google"],"google")]),
md_par(["Search on ", md_link(["Google"],"google")]),
md_par(["Search on ", md_link(["Google"],"google")]),
md_par(["Search on ", md_link(["Google images"],"google_images")]),
md_par(["Inline: ", md_im_link(["Google images"], "http://google.com", nil)]),
md_par([
"Inline with title: ",
md_im_link(["Google images"], "http://google.com", "Title")
]),
md_par([
"Inline with title: ",
md_im_link(["Google images"], "http://google.com", "Title")
]),
md_par([
"Search on ",
md_url("http://www.gogole.com"),
" or ",
md_url("http://Here.com"),
" or ask ",
md_email("bill@google.com"),
" or you might ask bill@google.com."
]),
md_par([
"If all else fails, ask ",
md_im_link(["Google"], "http://www.google.com", nil)
]),
md_ref_def("google", "http://www.google.com", {:title=>nil}),
md_ref_def("google2", "http://www.google.com", {:title=>"Single quotes"}),
md_ref_def("google3", "http://www.google.com", {:title=>"Double quotes"}),
md_ref_def("google4", "http://www.google.com", {:title=>"Parenthesis"}),
md_ref_def("google_search", "http://www.google.com", {:title=>"Google search"}),
md_ref_def("google_images", "http://images.google.com", {:title=>"Google images"})
],{},[])
*** Output of to_html ***
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://www.google.com'>Google</a></p>
<p>Search on <a href='http://images.google.com' title='Google images'>Google images</a></p>
<p>Inline: <a href='http://google.com'>Google images</a></p>
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
<p>Inline with title: <a href='http://google.com' title='Title'>Google images</a></p>
<p>Search on <a href='http://www.gogole.com'>http://www.gogole.com</a> or <a href='http://Here.com'>http://Here.com</a> or ask <a href='mailto:bill@google.com'>&#098;&#105;&#108;&#108;&#064;&#103;&#111;&#111;&#103;&#108;&#101;&#046;&#099;&#111;&#109;</a> or you might ask bill@google.com.</p>
<p>If all else fails, ask <a href='http://www.google.com'>Google</a></p>
*** Output of to_latex ***
Search on \href{http://www.google.com}{Google}
Search on \href{http://www.google.com}{Google}
Search on \href{http://www.google.com}{Google}
Search on \href{http://www.google.com}{Google}
Search on \href{http://images.google.com}{Google images}
Inline: \href{http://google.com}{Google images}
Inline with title: \href{http://google.com}{Google images}
Inline with title: \href{http://google.com}{Google images}
Search on \href{http://www.gogole.com}{http\char58\char47\char47www\char46gogole\char46com} or \href{http://Here.com}{http\char58\char47\char47Here\char46com} or ask \href{mailto:bill@google.com}{bill\char64google\char46com} or you might ask bill@google.com.
If all else fails, ask \href{http://www.google.com}{Google}
*** Output of to_md ***
Search on Google
Search on Google
Search on Google
Search on Google
Search on Google images
Inline: Google images
Inline with title: Google images
Inline with title: Google images
Search on or or ask or you might ask
bill@google.com.
If all else fails, ask Google
*** Output of to_s ***
Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google imagesInline: Google imagesInline with title: Google imagesInline with title: Google imagesSearch on or or ask or you might ask bill@google.com.If all else fails, ask Google
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Search on <a href="http://www.google.com">Google</a></p>
<p>Search on <a href="http://www.google.com">Google</a></p>
<p>Search on <a href="http://www.google.com">Google</a></p>
<p>Search on <a href="http://www.google.com">Google</a></p>
<p>Search on <a href="http://images.google.com" title="Google images">Google images</a></p>
<p>Inline: <a href="http://google.com">Google images</a></p>
<p>Inline with title: <a href="http://google.com" title="Title">Google images</a></p>
<p>Inline with title: <a href="http://google.com "Title"">Google images</a></p>
<p>Search on <a href="http://www.gogole.com">http://www.gogole.com</a> or <a href="http://Here.com">http://Here.com</a> or ask <a href="&#x6D;&#97;&#x69;&#x6C;&#x74;&#x6F;:&#x62;&#105;&#x6C;&#x6C;&#64;&#x67;&#111;&#x6F;&#103;&#108;&#101;&#x2E;&#x63;&#111;&#109;">&#x62;&#105;&#x6C;&#x6C;&#64;&#x67;&#111;&#x6F;&#103;&#108;&#101;&#x2E;&#x63;&#111;&#109;</a>
or you might ask bill@google.com.</p>
<p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
<p>[google2]: http://www.google.com 'Single quotes'</p>
*** Output of Markdown.pl (parsed) ***
Error: #<REXML::ParseException: #<REXML::ParseException: Missing end tag for 'p' (got "div")
Line:
Position:
Last 80 unconsumed characters:
>
/sw/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
/sw/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
/sw/lib/ruby/1.8/rexml/document.rb:190:in `build'
/sw/lib/ruby/1.8/rexml/document.rb:45:in `initialize'
bin/marutest:200:in `new'
bin/marutest:200:in `run_test'
bin/marutest:263:in `marutest'
bin/marutest:260:in `each'
bin/marutest:260:in `marutest'
bin/marutest:335
...
Missing end tag for 'p' (got "div")
Line:
Position:
Last 80 unconsumed characters:
Line:
Position:
Last 80 unconsumed characters:
>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<ul>
<li>
<p>A list item with a blockquote:</p>
<blockquote>
<p>This is a blockquote inside a list item.</p>
</blockquote>
</li>
</ul>
</body></html>

View file

@ -0,0 +1,66 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
* A list item with a blockquote:
> This is a blockquote
> inside a list item.
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,[
md_par(["A list item with a blockquote:"]),
md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
],{:want_my_paragraph=>true},[])
],{},[])
],{},[])
*** Output of to_html ***
<ul>
<li>
<p>A list item with a blockquote:</p>
<blockquote>
<p>This is a blockquote inside a list item.</p>
</blockquote>
</li>
</ul>
*** Output of to_latex ***
\begin{itemize}%
\item A list item with a blockquote:
\begin{quote}%
This is a blockquote inside a list item.
\end{quote}
\end{itemize}
*** Output of to_md ***
- list item with a blockquote:
This is a blockquote inside a list
item.
*** Output of to_s ***
A list item with a blockquote:This is a blockquote inside a list item.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<ul>
<li><p>A list item with a blockquote:</p>
<blockquote>
<p>This is a blockquote
inside a list item.</p>
</blockquote></li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<ul>
<li>
<p>This is a list item with two paragraphs.</p>
<p>This is the second paragraph in the list item. You&#8217;re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</li>
<li>
<p>other</p>
</li>
</ul>
</body></html>

View file

@ -0,0 +1,76 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
* This is a list item with two paragraphs.
This is the second paragraph in the list item. You're
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit.
* other
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,[
md_par(["This is a list item with two paragraphs."]),
md_par([
"This is the second paragraph in the list item. You",
md_entity("rsquo"),
"re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
])
],{:want_my_paragraph=>true},[]),
md_el(:li,[md_par(["other"])],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
<ul>
<li>
<p>This is a list item with two paragraphs.</p>
<p>This is the second paragraph in the list item. You&#8217;re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</li>
<li>
<p>other</p>
</li>
</ul>
*** Output of to_latex ***
\begin{itemize}%
\item This is a list item with two paragraphs.
This is the second paragraph in the list item. You'{}re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
\item other
\end{itemize}
*** Output of to_md ***
-This is a list item with two paragraphs.
This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
-ther
*** Output of to_s ***
This is a list item with two paragraphs.This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.other
*** EOF ***
OK!
*** Output of Markdown.pl ***
<ul>
<li><p>This is a list item with two paragraphs.</p>
<p>This is the second paragraph in the list item. You're
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit.</p></li>
<li><p>other</p></li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<ul>
<li>
<p>A list item with a blockquote:</p>
<blockquote>
<p>This is a blockquote inside a list item.</p>
</blockquote>
</li>
<li>
<p>A list item with a code block:</p>
<pre><code>&lt;code goes here&gt;</code></pre>
</li>
</ul>
</body></html>

View file

@ -0,0 +1,88 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
* A list item with a blockquote:
> This is a blockquote
> inside a list item.
* A list item with a code block:
<code goes here>
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,[
md_par(["A list item with a blockquote:"]),
md_el(:quote,[md_par(["This is a blockquote inside a list item."])],{},[])
],{:want_my_paragraph=>true},[]),
md_el(:li,[
md_par(["A list item with a code block:"]),
md_el(:code,[],{:raw_code=>"<code goes here>"},[])
],{:want_my_paragraph=>true},[])
],{},[])
],{},[])
*** Output of to_html ***
<ul>
<li>
<p>A list item with a blockquote:</p>
<blockquote>
<p>This is a blockquote inside a list item.</p>
</blockquote>
</li>
<li>
<p>A list item with a code block:</p>
<pre><code>&lt;code goes here&gt;</code></pre>
</li>
</ul>
*** Output of to_latex ***
\begin{itemize}%
\item A list item with a blockquote:
\begin{quote}%
This is a blockquote inside a list item.
\end{quote}
\item A list item with a code block:
\begin{verbatim}<code goes here>\end{verbatim}
\end{itemize}
*** Output of to_md ***
- list item with a blockquote:
This is a blockquote inside a list
item.
- list item with a code block:
*** Output of to_s ***
A list item with a blockquote:This is a blockquote inside a list item.A list item with a code block:
*** EOF ***
OK!
*** Output of Markdown.pl ***
<ul>
<li><p>A list item with a blockquote:</p>
<blockquote>
<p>This is a blockquote
inside a list item.</p>
</blockquote></li>
<li><p>A list item with a code block:</p>
<pre><code>&lt;code goes here&gt;
</code></pre></li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>This is a list:</p>
<ul>
<li>one</li>
<li>two</li>
</ul>
<p>This is not a list: * one ciao</p>
<p>This is a list:</p>
<ol>
<li>one</li>
<li>two</li>
</ol>
<p>This is not a list: 1987. one ciao</p>
</body></html>

View file

@ -0,0 +1,116 @@
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
1. 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 ***
<p>This is a list:</p>
<ul>
<li>one</li>
<li>two</li>
</ul>
<p>This is not a list: * one ciao</p>
<p>This is a list:</p>
<ol>
<li>one</li>
<li>two</li>
</ol>
<p>This is not a list: 1987. one ciao</p>
*** 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 ***
<p>This is a list:
* one
* two</p>
<p>This is not a list:
* one
ciao</p>
<p>This is a list:
1. one
1. two</p>
<p>This is not a list:
1987. one
ciao</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<ul>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
</ul>
<p>Ancora</p>
<ul>
<li>
<p>This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.</p>
<p>ATTENZIONE!</p>
</li>
<li>
<p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
</li>
</ul>
<p>Ancora</p>
<ul>
<li>
<p>This is a list item with two paragraphs.</p>
<p>This is the second paragraph in the list item. You&#8217;re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</li>
<li>
<p>Another item in the same list.</p>
</li>
</ul>
</body></html>

View file

@ -0,0 +1,241 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus.
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
Ancora
* This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
mi posuere lectus.
ATTENZIONE!
* Suspendisse id sem consectetuer libero luctus adipiscing.
Ancora
* This is a list item with two paragraphs.
This is the second paragraph in the list item. You're
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit.
* Another item in the same list.
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li_span,[
"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus."
],{:want_my_paragraph=>false},[]),
md_el(:li_span,[
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
],{:want_my_paragraph=>false},[]),
md_el(:li_span,[
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
],{:want_my_paragraph=>false},[]),
md_el(:li_span,[
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
],{:want_my_paragraph=>false},[]),
md_el(:li_span,[
"Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing."
],{:want_my_paragraph=>false},[])
],{},[]),
md_par(["Ancora"]),
md_el(:ul,[
md_el(:li,[
md_par([
"This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus."
]),
md_par(["ATTENZIONE!"])
],{:want_my_paragraph=>true},[]),
md_el(:li,[
md_par(["Suspendisse id sem consectetuer libero luctus adipiscing."])
],{:want_my_paragraph=>false},[])
],{},[]),
md_par(["Ancora"]),
md_el(:ul,[
md_el(:li,[
md_par(["This is a list item with two paragraphs."]),
md_par([
"This is the second paragraph in the list item. You",
md_entity("rsquo"),
"re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."
])
],{:want_my_paragraph=>true},[]),
md_el(:li,[md_par(["Another item in the same list."])],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
<ul>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.</li>
</ul>
<p>Ancora</p>
<ul>
<li>
<p>This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.</p>
<p>ATTENZIONE!</p>
</li>
<li>
<p>Suspendisse id sem consectetuer libero luctus adipiscing.</p>
</li>
</ul>
<p>Ancora</p>
<ul>
<li>
<p>This is a list item with two paragraphs.</p>
<p>This is the second paragraph in the list item. You&#8217;re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</li>
<li>
<p>Another item in the same list.</p>
</li>
</ul>
*** Output of to_latex ***
\begin{itemize}%
\item Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
\item Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.
\end{itemize}
Ancora
\begin{itemize}%
\item This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
ATTENZIONE!
\item Suspendisse id sem consectetuer libero luctus adipiscing.
\end{itemize}
Ancora
\begin{itemize}%
\item This is a list item with two paragraphs.
This is the second paragraph in the list item. You'{}re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
\item Another item in the same list.
\end{itemize}
*** Output of to_md ***
-orem ipsum dolor sit amet,
consectetuer adipiscing elit.
Aliquam hendrerit mi posuere
lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet
vitae, risus.
-onec sit amet nisl. Aliquam semper
ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus
adipiscing.
-onec sit amet nisl. Aliquam semper
ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus
adipiscing.
-onec sit amet nisl. Aliquam semper
ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus
adipiscing.
-onec sit amet nisl. Aliquam semper
ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus
adipiscing.
Ancora
-This is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
ATTENZIONE!
-Suspendisse id sem consectetuer libero luctus adipiscing.
Ancora
-This is a list item with two paragraphs.
This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
-nother item in the same list.
*** Output of to_s ***
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.AncoraThis is a list item with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.ATTENZIONE!Suspendisse id sem consectetuer libero luctus adipiscing.AncoraThis is a list item with two paragraphs.This is the second paragraph in the list item. Youre only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Another item in the same list.
*** EOF ***
OK!
*** Output of Markdown.pl ***
<ul>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
<ul>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
<li>Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.</li>
</ul></li>
</ul>
<p>Ancora</p>
<ul>
<li><p>This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
mi posuere lectus.</p>
<p>ATTENZIONE!</p></li>
<li><p>Suspendisse id sem consectetuer libero luctus adipiscing.</p></li>
</ul>
<p>Ancora</p>
<ul>
<li><p>This is a list item with two paragraphs.</p>
<p>This is the second paragraph in the list item. You're
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit.</p></li>
<li><p>Another item in the same list.</p></li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>- ένα</p>
</body></html>

View file

@ -0,0 +1,31 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
- ένα
*** Output of inspect ***
md_el(:document,[md_par(["- \316\255\316\275\316\261"])],{},[])
*** Output of to_html ***
<p>- ένα</p>
*** Output of to_latex ***
- ένα
*** Output of to_md ***
- ένα
*** Output of to_s ***
- ένα
*** EOF ***
OK!
*** Output of Markdown.pl ***
<ul>
<li>ένα</li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body /></html>

View file

@ -0,0 +1,54 @@
## Nested
* Tab
* Tab
* Tab
Here's another:
1. First
2. Second:
* Fee
* Fie
* Foe
3. Third
Same thing but with paragraphs:
1. First
2. Second:
* Fee
* Fie
* Foe
3. Third
*** Parameters: ***
{}
*** Markdown input: ***
*** Output of inspect ***
md_el(:document,[],{},[])
*** Output of to_html ***
*** Output of to_latex ***
*** Output of to_md ***
*** Output of to_s ***
*** EOF ***
OK!
*** Output of Markdown.pl ***
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div/>:REXML::Element>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Ciao</p>
<ul>
<li>Tab * Tab * Tab</li>
</ul>
</body></html>

View file

@ -0,0 +1,79 @@
I'm not sure if this should work at all...
*** Parameters: ***
{} # params
*** Markdown input: ***
Ciao
* Tab
* Tab
* Tab
*** Output of inspect ***
nil
*** Output of to_html ***
<p>Ciao</p>
<ul>
<li>Tab * Tab * Tab</li>
</ul>
*** Output of to_latex ***
Ciao
\begin{itemize}%
\item Tab * Tab * Tab
\end{itemize}
*** Output of to_md ***
Ciao
-ab * Tab * Tab
*** Output of to_s ***
CiaoTab * Tab * Tab
*** EOF ***
Failed tests: [:inspect]
*** Output of inspect ***
-----| WARNING | -----
md_el(:document,[
md_par(["Ciao"]),
md_el(:ul,[md_el(:li_span,["Tab * Tab * Tab"],{:want_my_paragraph=>false},[])],{},[])
],{},[])
*** Output of to_html ***
<p>Ciao</p>
<ul>
<li>Tab * Tab * Tab</li>
</ul>
*** Output of to_latex ***
Ciao
\begin{itemize}%
\item Tab * Tab * Tab
\end{itemize}
*** Output of to_md ***
Ciao
-ab * Tab * Tab
*** Output of to_s ***
CiaoTab * Tab * Tab
*** Output of Markdown.pl ***
<p>Ciao</p>
<ul>
<li>Tab
<ul>
<li>Tab
<ul>
<li>Tab</li>
</ul></li>
</ul></li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<ul>
<li>
<p>a</p>
<ul>
<li>a1</li>
<li>a2</li>
</ul>
</li>
<li>
<p>b</p>
</li>
</ul>
</body></html>

View file

@ -0,0 +1,136 @@
Test case given by Scott.
http://rubyforge.org/tracker/index.php?func=detail&aid=8862&group_id=2795&atid=10735
a should not be indented.
*** Parameters: ***
{} # params
*** Markdown input: ***
* a
* a1
* a2
* b
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,[
"a",
md_el(:ul,[
md_el(:li_span,["a1"],{:want_my_paragraph=>false},[]),
md_el(:li_span,["a2"],{:want_my_paragraph=>false},[])
],{},[])
],{:want_my_paragraph=>true},[]),
md_el(:li,[md_par(["b"])],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
<ul>
<li>
a
<ul>
<li>a1</li>
<li>a2</li>
</ul>
</li>
<li>
<p>b</p>
</li>
</ul>
*** Output of to_latex ***
\begin{itemize}%
\item a
\begin{itemize}%
\item a1
\item a2
\end{itemize}
\item b
\end{itemize}
*** Output of to_md ***
-* a1
* a2
-
*** Output of to_s ***
aa1a2b
*** EOF ***
Failed tests: [:inspect, :to_html]
*** Output of inspect ***
-----| WARNING | -----
md_el(:document,[
md_el(:ul,[
md_el(:li,[
md_par(["a"]),
md_el(:ul,[
md_el(:li_span,["a1"],{:want_my_paragraph=>false},[]),
md_el(:li_span,["a2"],{:want_my_paragraph=>false},[])
],{},[])
],{:want_my_paragraph=>true},[]),
md_el(:li,[md_par(["b"])],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
-----| WARNING | -----
<ul>
<li>
<p>a</p>
<ul>
<li>a1</li>
<li>a2</li>
</ul>
</li>
<li>
<p>b</p>
</li>
</ul>
*** Output of to_latex ***
\begin{itemize}%
\item a
\begin{itemize}%
\item a1
\item a2
\end{itemize}
\item b
\end{itemize}
*** Output of to_md ***
-* a1
* a2
-
*** Output of to_s ***
aa1a2b
*** Output of Markdown.pl ***
<ul>
<li>a
<ul>
<li>a1</li>
<li>a2</li>
</ul></li>
<li>b</li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Here is a paragraph.</p>
<p>* Item 1 * Item 2 * Item 3</p>
</body></html>

View file

@ -0,0 +1,83 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
Here is a paragraph.
* Item 1
* Item 2
* Item 3
*** Output of inspect ***
md_el(:document,[
md_par(["Here is a paragraph."]),
md_el(:ul,[
md_el(:li_span,["Item 1"],{:want_my_paragraph=>false},[]),
md_el(:li_span,["Item 2"],{:want_my_paragraph=>false},[]),
md_el(:li_span,["Item 3"],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
<p>Here is a paragraph.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
*** Output of to_latex ***
Here is a paragraph.
* Item 1 * Item 2 * Item 3
*** Output of to_md ***
Here is a paragraph.
-tem 1
-tem 2
-tem 3
*** Output of to_s ***
Here is a paragraph.Item 1Item 2Item 3
*** EOF ***
Failed tests: [:inspect, :to_html, :to_md, :to_s]
*** Output of inspect ***
-----| WARNING | -----
md_el(:document,[
md_par(["Here is a paragraph."]),
md_par(["* Item 1 * Item 2 * Item 3"])
],{},[])
*** Output of to_html ***
-----| WARNING | -----
<p>Here is a paragraph.</p>
<p>* Item 1 * Item 2 * Item 3</p>
*** Output of to_latex ***
Here is a paragraph.
* Item 1 * Item 2 * Item 3
*** Output of to_md ***
-----| WARNING | -----
Here is a paragraph.
* Item 1 * Item 2 * Item 3
*** Output of to_s ***
-----| WARNING | -----
Here is a paragraph.* Item 1 * Item 2 * Item 3
*** Output of Markdown.pl ***
<p>Here is a paragraph.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<ul>
<li>
<p>Due</p>
<ol>
<li>tre</li>
<li>tre</li>
<li>tre</li>
</ol>
</li>
<li>
<p>Due</p>
</li>
</ul>
</body></html>

View file

@ -0,0 +1,85 @@
Write a comment here
*** Parameters: ***
{} # params
*** Markdown input: ***
- Due
1. tre
1. tre
1. tre
- Due
*** Output of inspect ***
md_el(:document,[
md_el(:ul,[
md_el(:li,[
md_par(["Due"]),
md_el(:ol,[
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[]),
md_el(:li_span,["tre"],{:want_my_paragraph=>false},[])
],{},[])
],{:want_my_paragraph=>true},[]),
md_el(:li,[md_par(["Due"])],{:want_my_paragraph=>false},[])
],{},[])
],{},[])
*** Output of to_html ***
<ul>
<li>
<p>Due</p>
<ol>
<li>tre</li>
<li>tre</li>
<li>tre</li>
</ol>
</li>
<li>
<p>Due</p>
</li>
</ul>
*** Output of to_latex ***
\begin{itemize}%
\item Due
\begin{enumerate}%
\item tre
\item tre
\item tre
\end{enumerate}
\item Due
\end{itemize}
*** Output of to_md ***
-ue* tre
* tre
* tre
-ue
*** Output of to_s ***
DuetretretreDue
*** EOF ***
OK!
*** Output of Markdown.pl ***
<ul>
<li>Due
<ol>
<li>tre</li>
<li>tre</li>
<li>tre</li>
</ol></li>
<li>Due</li>
</ul>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

View file

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns:svg='http://www.w3.org/2000/svg' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head><meta content='application/xhtml+xml;charset=utf-8' http-equiv='Content-type' /><title></title></head>
<body>
<p>Paragraph, list with no space: * ciao</p>
<p>Paragraph, list with 1 space: * ciao</p>
<p>Paragraph, list with 3 space: * ciao</p>
<p>Paragraph, list with 4 spaces: * ciao</p>
<p>Paragraph, list with 1 tab: * ciao</p>
<p>Paragraph (1 space after), list with no space: * ciao</p>
<p>Paragraph (2 spaces after), list with no space:<br />* ciao</p>
<p>Paragraph (3 spaces after), list with no space: <br />* ciao</p>
<p>Paragraph with block quote:</p>
<blockquote>
<p>Quoted</p>
</blockquote>
<p>Paragraph with header:</p>
<h3 id='header'>header</h3>
<p>Paragraph with header on two lines:</p>
<h2 id='header'>header</h2>
<p>Paragraph with html after </p>
<p>Paragraph with html after, indented: </p>
<p>Paragraph with html after, indented: <em>tralla</em> </p>
<p>Paragraph with html after, indented: </p>
</body></html>

View file

@ -0,0 +1,268 @@
Write a comment abouth the test here.
*** Parameters: ***
{}
*** Markdown input: ***
Paragraph, list with no space:
* ciao
Paragraph, list with 1 space:
* ciao
Paragraph, list with 3 space:
* ciao
Paragraph, list with 4 spaces:
* ciao
Paragraph, list with 1 tab:
* ciao
Paragraph (1 space after), list with no space:
* ciao
Paragraph (2 spaces after), list with no space:
* ciao
Paragraph (3 spaces after), list with no space:
* ciao
Paragraph with block quote:
> Quoted
Paragraph with header:
### header ###
Paragraph with header on two lines:
header
------
Paragraph with html after
<div></div>
Paragraph with html after, indented:
<em>Emphasis</em>
Paragraph with html after, indented: <em>Emphasis</em> *tralla* <em>Emph</em>
Paragraph with html after, indented: <em>Emphasis *tralla* Emph</em>
*** Output of inspect ***
md_el(:document,[
md_par(["Paragraph, list with no space: * ciao"]),
md_par(["Paragraph, list with 1 space: * ciao"]),
md_par(["Paragraph, list with 3 space: * ciao"]),
md_par(["Paragraph, list with 4 spaces: * ciao"]),
md_par(["Paragraph, list with 1 tab: * ciao"]),
md_par(["Paragraph (1 space after), list with no space: * ciao"]),
md_par([
"Paragraph (2 spaces after), list with no space:",
md_el(:linebreak,[],{},[]),
"* ciao"
]),
md_par([
"Paragraph (3 spaces after), list with no space: ",
md_el(:linebreak,[],{},[]),
"* ciao"
]),
md_par(["Paragraph with block quote:"]),
md_el(:quote,[md_par(["Quoted"])],{},[]),
md_par(["Paragraph with header:"]),
md_el(:header,["header"],{:level=>3},[]),
md_par(["Paragraph with header on two lines:"]),
md_el(:header,["header"],{:level=>2},[]),
md_par(["Paragraph with html after ", md_html("<div></div>")]),
md_par([
"Paragraph with html after, indented: ",
md_html("<em>Emphasis</em>")
]),
md_par([
"Paragraph with html after, indented: ",
md_html("<em>Emphasis</em>"),
" ",
md_em(["tralla"]),
" ",
md_html("<em>Emph</em>")
]),
md_par([
"Paragraph with html after, indented: ",
md_html("<em>Emphasis *tralla* Emph</em>")
])
],{},[])
*** Output of to_html ***
<p>Paragraph, list with no space: * ciao</p>
<p>Paragraph, list with 1 space: * ciao</p>
<p>Paragraph, list with 3 space: * ciao</p>
<p>Paragraph, list with 4 spaces: * ciao</p>
<p>Paragraph, list with 1 tab: * ciao</p>
<p>Paragraph (1 space after), list with no space: * ciao</p>
<p>Paragraph (2 spaces after), list with no space:<br />* ciao</p>
<p>Paragraph (3 spaces after), list with no space: <br />* ciao</p>
<p>Paragraph with block quote:</p>
<blockquote>
<p>Quoted</p>
</blockquote>
<p>Paragraph with header:</p>
<h3 id='header'>header</h3>
<p>Paragraph with header on two lines:</p>
<h2 id='header'>header</h2>
<p>Paragraph with html after <div /></p>
<p>Paragraph with html after, indented: <em>Emphasis</em></p>
<p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
<p>Paragraph with html after, indented: <em>Emphasis *tralla* Emph</em></p>
*** Output of to_latex ***
Paragraph, list with no space: * ciao
Paragraph, list with 1 space: * ciao
Paragraph, list with 3 space: * ciao
Paragraph, list with 4 spaces: * ciao
Paragraph, list with 1 tab: * ciao
Paragraph (1 space after), list with no space: * ciao
Paragraph (2 spaces after), list with no space:\newline * ciao
Paragraph (3 spaces after), list with no space: \newline * ciao
Paragraph with block quote:
\begin{quote}%
Quoted
\end{quote}
Paragraph with header:
\hypertarget{header}{}\subsubsection*{{header}}\label{header}
Paragraph with header on two lines:
\hypertarget{header}{}\subsection*{{header}}\label{header}
Paragraph with html after
Paragraph with html after, indented:
Paragraph with html after, indented: \emph{tralla}
Paragraph with html after, indented:
*** Output of to_md ***
Paragraph, list with no space: * ciao
Paragraph, list with 1 space: * ciao
Paragraph, list with 3 space: * ciao
Paragraph, list with 4 spaces: * ciao
Paragraph, list with 1 tab: * ciao
Paragraph (1 space after), list with no
space: * ciao
Paragraph (2 spaces after), list with
no space:
* ciao
Paragraph (3 spaces after), list with
no space:
* ciao
Paragraph with block quote:
Quoted
Paragraph with header:
headerParagraph with header on two lines:
headerParagraph with html after
Paragraph with html after, indented:
Paragraph with html after, indented:
tralla
Paragraph with html after, indented:
*** Output of to_s ***
Paragraph, list with no space: * ciaoParagraph, list with 1 space: * ciaoParagraph, list with 3 space: * ciaoParagraph, list with 4 spaces: * ciaoParagraph, list with 1 tab: * ciaoParagraph (1 space after), list with no space: * ciaoParagraph (2 spaces after), list with no space:* ciaoParagraph (3 spaces after), list with no space: * ciaoParagraph with block quote:QuotedParagraph with header:headerParagraph with header on two lines:headerParagraph with html after Paragraph with html after, indented: Paragraph with html after, indented: tralla Paragraph with html after, indented:
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Paragraph, list with no space:
* ciao</p>
<p>Paragraph, list with 1 space:
* ciao</p>
<p>Paragraph, list with 3 space:
* ciao</p>
<p>Paragraph, list with 4 spaces:
* ciao</p>
<p>Paragraph, list with 1 tab:
* ciao</p>
<p>Paragraph (1 space after), list with no space:
* ciao</p>
<p>Paragraph (2 spaces after), list with no space: <br />
* ciao</p>
<p>Paragraph (3 spaces after), list with no space: <br />
* ciao</p>
<p>Paragraph with block quote:</p>
<blockquote>
<p>Quoted</p>
</blockquote>
<p>Paragraph with header:</p>
<h3>header</h3>
<p>Paragraph with header on two lines:</p>
<h2>header</h2>
<p>Paragraph with html after</p>
<div></div>
<p>Paragraph with html after, indented:
<em>Emphasis</em></p>
<p>Paragraph with html after, indented: <em>Emphasis</em> <em>tralla</em> <em>Emph</em></p>
<p>Paragraph with html after, indented: <em>Emphasis <em>tralla</em> Emph</em></p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>

Some files were not shown because too many files have changed in this diff Show more