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,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>Search on Google imagesGoOgle search ]</p>
</body></html>

View file

@ -0,0 +1,28 @@
This shows how Maruku recovers from parsing errors
*** Parameters: ***
{:on_error=>:warning}
*** Markdown input: ***
Search on [Google images][ GoOgle search ]
*** Output of inspect ***
md_el(:document,[md_par(["Search on Google imagesGoOgle search ]"])],{},[])
*** Output of to_html ***
<p>Search on Google imagesGoOgle search ]</p>
*** Output of to_latex ***
Search on Google imagesGoOgle search ]
*** Output of to_md ***
Search on Google imagesGoOgle search ]
*** Output of to_s ***
Search on Google imagesGoOgle search ]
*** EOF ***
OK!
*** Output of Markdown.pl ***
<p>Search on [Google images][ GoOgle search ]</p>
*** Output of Markdown.pl (parsed) ***
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>