Blahtex
Sync with latest Maruku. Pave the way for Blahtex (PNG-based math) support (from Ari Stern). (no visible functionality, yet, but that will come)
This commit is contained in:
parent
4e3aefd9d3
commit
c427807274
33 changed files with 610 additions and 101 deletions
55
vendor/plugins/maruku/tests/unittest/divs/div1.html
vendored
Normal file
55
vendor/plugins/maruku/tests/unittest/divs/div1.html
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
<?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>
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>text</p>
|
||||
</div>
|
||||
</body></html>
|
|
@ -201,4 +201,53 @@ texttexttexttexttexttexttexttexttexttexttexttext
|
|||
<p>=--</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
||||
<div>
|
||||
<p>
|
||||
+--------- | text +----------
|
||||
</p>
|
||||
<p>
|
||||
+--------- |text
|
||||
</p>
|
||||
<p>
|
||||
+-- text
|
||||
</p>
|
||||
<p>
|
||||
=--
|
||||
</p>
|
||||
<p>
|
||||
+--------- | text +----------
|
||||
</p>
|
||||
<p>
|
||||
+--------- |text
|
||||
</p>
|
||||
<p>
|
||||
+-- text
|
||||
</p>
|
||||
<p>
|
||||
=--
|
||||
</p>
|
||||
<p>
|
||||
+--------- | text +----------
|
||||
</p>
|
||||
<p>
|
||||
+--------- |text
|
||||
</p>
|
||||
<p>
|
||||
+-- text
|
||||
</p>
|
||||
<p>
|
||||
=--
|
||||
</p>
|
||||
<p>
|
||||
+--------- | text +----------
|
||||
</p>
|
||||
<p>
|
||||
+--------- |text
|
||||
</p>
|
||||
<p>
|
||||
+-- text
|
||||
</p>
|
||||
<p>
|
||||
=--
|
||||
</p>
|
||||
</div>
|
11
vendor/plugins/maruku/tests/unittest/divs/div2.html
vendored
Normal file
11
vendor/plugins/maruku/tests/unittest/divs/div2.html
vendored
Normal 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>
|
||||
<div>
|
||||
<p>ciao</p>
|
||||
</div>
|
||||
</body></html>
|
|
@ -31,4 +31,8 @@ ciao
|
|||
=--</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
||||
<div>
|
||||
<p>
|
||||
+-- ciao =--
|
||||
</p>
|
||||
</div>
|
17
vendor/plugins/maruku/tests/unittest/divs/div3_nest.html
vendored
Normal file
17
vendor/plugins/maruku/tests/unittest/divs/div3_nest.html
vendored
Normal 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>
|
||||
<div class='warning'>
|
||||
<p>this is the last warning!</p>
|
||||
|
||||
<p>please, go away!</p>
|
||||
|
||||
<div class='menace'>
|
||||
<p>or else terrible things will happen</p>
|
||||
</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -59,4 +59,12 @@ this is the last warning!please, go away!or else terrible things will happen
|
|||
+---------------------------------------------------</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<NoMethodError: private method `write_children' called for <div> ... </>:REXML::Element>
|
||||
<div>
|
||||
<p>
|
||||
+-----------------------------------{.warning}------ | this is the last
|
||||
warning! | | please, go away! | | +-------------------------------------
|
||||
{.menace} -- | | or else terrible things will happen |
|
||||
+--------------------------------------------------
|
||||
+---------------------------------------------------
|
||||
</p>
|
||||
</div>
|
|
@ -27,7 +27,7 @@ This is an email address:
|
|||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>This is an email address: <a href="mailto:andrea@invalid.it">andrea@invalid.it</a></p>
|
||||
<p>This is an email address: <a href="mailto:andrea@invalid.it">andrea@invalid.it</a></p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
Error: #<TypeError: no implicit conversion from nil to integer>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<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’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>That’s some text with a footnote and another and another .</p>
|
||||
|
||||
<p>This is not a footnote.</p>
|
||||
<div class='footnotes'><hr /><ol><li id='fn:1'>
|
||||
|
@ -18,14 +18,4 @@
|
|||
<p>And that’s the footnote.</p>
|
||||
|
||||
<p>That’s the second paragraph of the footnote.</p>
|
||||
<a href='#fnref:3' rev='footnote'>↩</a></li><li id='fn:4'>
|
||||
<p>And that’s the footnote. This is second sentence (same paragraph).</p>
|
||||
<a href='#fnref:4' rev='footnote'>↩</a></li><li id='fn:5'>
|
||||
<p>This is the very long one.</p>
|
||||
|
||||
<p>That’s the second paragraph.</p>
|
||||
<a href='#fnref:5' rev='footnote'>↩</a></li><li id='fn:6'>
|
||||
<p>And that’s the footnote.</p>
|
||||
|
||||
<p>That’s the second paragraph of the footnote.</p>
|
||||
<a href='#fnref:6' rev='footnote'>↩</a></li></ol></div></body></html>
|
||||
<a href='#fnref:3' rev='footnote'>↩</a></li></ol></div></body></html>
|
|
@ -238,9 +238,9 @@ Line:
|
|||
Position:
|
||||
Last 80 unconsumed characters:
|
||||
<div markdown="1"> This is *true* markdown text (paragraph) <p markdow>
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:204:in `build'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in `pull'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in `parse'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:205:in `build'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:42:in `initialize'
|
||||
bin/marutest:200:in `new'
|
||||
bin/marutest:200:in `run_test'
|
||||
|
|
|
@ -162,7 +162,7 @@ Search on GoogleSearch on GoogleSearch on GoogleSearch on GoogleSearch on Google
|
|||
|
||||
<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="mailto:bill@google.com">bill@google.com</a>
|
||||
<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">bill@google.com</a>
|
||||
or you might ask bill@google.com.</p>
|
||||
|
||||
<p>If all else fails, ask <a href="http://www.google.com">Google</a></p>
|
||||
|
@ -175,9 +175,9 @@ Line:
|
|||
Position:
|
||||
Last 80 unconsumed characters:
|
||||
>
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:204:in `build'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in `pull'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in `parse'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:205:in `build'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:42:in `initialize'
|
||||
bin/marutest:200:in `new'
|
||||
bin/marutest:200:in `run_test'
|
||||
|
|
9
vendor/plugins/maruku/tests/unittest/pending/amps.html
vendored
Normal file
9
vendor/plugins/maruku/tests/unittest/pending/amps.html
vendored
Normal 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>
|
||||
<pre><code>@articles.map(&:title)</code></pre>
|
||||
</body></html>
|
35
vendor/plugins/maruku/tests/unittest/pending/amps.md
vendored
Normal file
35
vendor/plugins/maruku/tests/unittest/pending/amps.md
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
Write a comment here
|
||||
*** Parameters: ***
|
||||
{} # params
|
||||
*** Markdown input: ***
|
||||
@articles.map(&:title)
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[md_el(:code,[],{:raw_code=>"@articles.map(&:title)"},[])],{},[])
|
||||
*** Output of to_html ***
|
||||
<pre><code>@articles.map(&:title)</code></pre>
|
||||
*** Output of to_latex ***
|
||||
\begin{verbatim}@articles.map(&:title)\end{verbatim}
|
||||
*** Output of to_md ***
|
||||
|
||||
*** Output of to_s ***
|
||||
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<pre><code>@articles.map(&:title)
|
||||
</code></pre>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<pre>
|
||||
<code>
|
||||
@articles.map(&:title)
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
9
vendor/plugins/maruku/tests/unittest/pending/empty_cells.html
vendored
Normal file
9
vendor/plugins/maruku/tests/unittest/pending/empty_cells.html
vendored
Normal 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><table><thead><tr><th /><th>1</th><th>2</th></tr></thead><tbody><tr><td style='text-align: left;'>A</td><td style='text-align: left;'>X</td><td style='text-align: left;' />
|
||||
</tr><tr><td style='text-align: left;'>B</td><td style='text-align: left;' /><td style='text-align: left;'>X</td>
|
||||
</tr></tbody></table></body></html>
|
57
vendor/plugins/maruku/tests/unittest/pending/empty_cells.md
vendored
Normal file
57
vendor/plugins/maruku/tests/unittest/pending/empty_cells.md
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
Write a comment here
|
||||
*** Parameters: ***
|
||||
{} # params
|
||||
*** Markdown input: ***
|
||||
| | 1 | 2 |
|
||||
|----|----|----|
|
||||
| A | X | |
|
||||
| B | | X |
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_el(:table,[
|
||||
md_el(:head_cell,[],{},[]),
|
||||
md_el(:head_cell,["1"],{},[]),
|
||||
md_el(:head_cell,["2"],{},[]),
|
||||
md_el(:cell,["A"],{},[]),
|
||||
md_el(:cell,["X"],{},[]),
|
||||
md_el(:cell,[],{},[]),
|
||||
md_el(:cell,["B"],{},[]),
|
||||
md_el(:cell,[],{},[]),
|
||||
md_el(:cell,["X"],{},[])
|
||||
],{:align=>[:left, :left, :left]},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<table><thead><tr><th /><th>1</th><th>2</th></tr></thead><tbody><tr><td style='text-align: left;'>A</td><td style='text-align: left;'>X</td><td style='text-align: left;' />
|
||||
</tr><tr><td style='text-align: left;'>B</td><td style='text-align: left;' /><td style='text-align: left;'>X</td>
|
||||
</tr></tbody></table>
|
||||
*** Output of to_latex ***
|
||||
\begin{tabular}{l|l|l}
|
||||
&1&2\\
|
||||
\hline
|
||||
A&X&\\
|
||||
B&&X\\
|
||||
\end{tabular}
|
||||
*** Output of to_md ***
|
||||
12AXBX
|
||||
*** Output of to_s ***
|
||||
12AXBX
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>| | 1 | 2 |
|
||||
|----|----|----|
|
||||
| A | X | |
|
||||
| B | | X |</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<p>
|
||||
| | 1 | 2 | |----|----|----| | A | X | | | B | | X |
|
||||
</p>
|
||||
</div>
|
25
vendor/plugins/maruku/tests/unittest/pending/link.html
vendored
Normal file
25
vendor/plugins/maruku/tests/unittest/pending/link.html
vendored
Normal 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>
|
||||
<p><a href='http://www.aa.com'>http://www.aa.com</a></p>
|
||||
|
||||
<p><a href='http://www.bb.com'>http://www.bb.com</a></p>
|
||||
|
||||
<p><a href='http://www.cc.com'>http://www.cc.com</a></p>
|
||||
|
||||
<p><a href='http://www.dd.com'>http://www.dd.com</a></p>
|
||||
|
||||
<pre><code><http://www.dd.com></code></pre>
|
||||
|
||||
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
||||
|
||||
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
||||
|
||||
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
||||
|
||||
<pre><code><a@invalid.it></code></pre>
|
||||
</body></html>
|
149
vendor/plugins/maruku/tests/unittest/pending/link.md
vendored
Normal file
149
vendor/plugins/maruku/tests/unittest/pending/link.md
vendored
Normal file
|
@ -0,0 +1,149 @@
|
|||
Write a comment here
|
||||
*** Parameters: ***
|
||||
{} # params
|
||||
*** Markdown input: ***
|
||||
<http://www.aa.com>
|
||||
|
||||
<http://www.bb.com>
|
||||
|
||||
<http://www.cc.com>
|
||||
|
||||
<http://www.dd.com>
|
||||
|
||||
<http://www.dd.com>
|
||||
|
||||
<a@invalid.it>
|
||||
|
||||
<a@invalid.it>
|
||||
|
||||
<a@invalid.it>
|
||||
|
||||
<a@invalid.it>
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par([md_url("http://www.aa.com")]),
|
||||
md_par([md_url("http://www.bb.com")]),
|
||||
md_par([md_url("http://www.cc.com")]),
|
||||
md_par([md_url("http://www.dd.com")]),
|
||||
md_el(:code,[],{:raw_code=>"<http://www.dd.com>"},[]),
|
||||
md_par([md_email("a@invalid.it")]),
|
||||
md_par([md_email("a@invalid.it")]),
|
||||
md_par([md_email("a@invalid.it")]),
|
||||
md_el(:code,[],{:raw_code=>"<a@invalid.it>"},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p><a href='http://www.aa.com'>http://www.aa.com</a></p>
|
||||
|
||||
<p><a href='http://www.bb.com'>http://www.bb.com</a></p>
|
||||
|
||||
<p><a href='http://www.cc.com'>http://www.cc.com</a></p>
|
||||
|
||||
<p><a href='http://www.dd.com'>http://www.dd.com</a></p>
|
||||
|
||||
<pre><code><http://www.dd.com></code></pre>
|
||||
|
||||
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
||||
|
||||
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
||||
|
||||
<p><a href='mailto:a@invalid.it'>a@invalid.it</a></p>
|
||||
|
||||
<pre><code><a@invalid.it></code></pre>
|
||||
*** Output of to_latex ***
|
||||
\href{http://www.aa.com}{http\char58\char47\char47www\char46aa\char46com}
|
||||
|
||||
\href{http://www.bb.com}{http\char58\char47\char47www\char46bb\char46com}
|
||||
|
||||
\href{http://www.cc.com}{http\char58\char47\char47www\char46cc\char46com}
|
||||
|
||||
\href{http://www.dd.com}{http\char58\char47\char47www\char46dd\char46com}
|
||||
|
||||
\begin{verbatim}<http://www.dd.com>\end{verbatim}
|
||||
\href{mailto:a@invalid.it}{a\char64invalid\char46it}
|
||||
|
||||
\href{mailto:a@invalid.it}{a\char64invalid\char46it}
|
||||
|
||||
\href{mailto:a@invalid.it}{a\char64invalid\char46it}
|
||||
|
||||
\begin{verbatim}<a@invalid.it>\end{verbatim}
|
||||
*** Output of to_md ***
|
||||
|
||||
*** Output of to_s ***
|
||||
|
||||
*** EOF ***
|
||||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p><a href="http://www.aa.com">http://www.aa.com</a></p>
|
||||
|
||||
<p><a href="http://www.bb.com">http://www.bb.com</a></p>
|
||||
|
||||
<p><a href="http://www.cc.com">http://www.cc.com</a></p>
|
||||
|
||||
<p><a href="http://www.dd.com">http://www.dd.com</a></p>
|
||||
|
||||
<pre><code><http://www.dd.com>
|
||||
</code></pre>
|
||||
|
||||
<p><a href="mailto:a@invalid.it">a@invalid.it</a></p>
|
||||
|
||||
<p><a href="mailto:a@invalid.it">a@invalid.it</a></p>
|
||||
|
||||
<p><a href="mailto:a@invalid.it">a@invalid.it</a></p>
|
||||
|
||||
<pre><code><a@invalid.it>
|
||||
</code></pre>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<p>
|
||||
<a href='http://www.aa.com'>
|
||||
http://www.aa.com
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href='http://www.bb.com'>
|
||||
http://www.bb.com
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href='http://www.cc.com'>
|
||||
http://www.cc.com
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href='http://www.dd.com'>
|
||||
http://www.dd.com
|
||||
</a>
|
||||
</p>
|
||||
<pre>
|
||||
<code>
|
||||
<http://www.dd.com>
|
||||
</code>
|
||||
</pre>
|
||||
<p>
|
||||
<a href='mailto:a@invalid.it'>
|
||||
a@invalid.it
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href='mailto:a@invalid.it'>
|
||||
a@invalid.it
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href='mailto:a@invalid.it'>
|
||||
a@invalid.it
|
||||
</a>
|
||||
</p>
|
||||
<pre>
|
||||
<code>
|
||||
<a@invalid.it>
|
||||
</code>
|
||||
</pre>
|
||||
</div>
|
|
@ -149,9 +149,9 @@ Line:
|
|||
Position:
|
||||
Last 80 unconsumed characters:
|
||||
<pre><code>She was 6\"12\'. </code></pre> <blockquote> <p>She was 6\"12\'.</>
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:320:in `pull'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:204:in `build'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in `pull'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in `parse'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:205:in `build'
|
||||
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/document.rb:42:in `initialize'
|
||||
bin/marutest:200:in `new'
|
||||
bin/marutest:200:in `run_test'
|
||||
|
|
10
vendor/plugins/maruku/tests/unittest/xml.html
vendored
10
vendor/plugins/maruku/tests/unittest/xml.html
vendored
|
@ -4,4 +4,12 @@
|
|||
"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>
|
||||
<body><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
||||
<svg:svg/></pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
||||
<svg:svg
|
||||
width="600px" height="400px">
|
||||
<svg:g id="group">
|
||||
<svg:circle id="circ1" r="1cm" cx="3cm" cy="3cm" style="fill:red;"></svg:circle>
|
||||
<svg:circle id="circ2" r="1cm" cx="7cm" cy="3cm" style="fill:red;" />
|
||||
</svg:g>
|
||||
</svg:svg></pre></body></html>
|
37
vendor/plugins/maruku/tests/unittest/xml.md
vendored
37
vendor/plugins/maruku/tests/unittest/xml.md
vendored
|
@ -35,9 +35,30 @@ md_el(:document,[
|
|||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
Failed tests: [:to_html]
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_html("<svg:svg/>"),
|
||||
md_html("<svg:svg \nwidth=\"600px\" height=\"400px\">\n <svg:g id=\"group\">\n\t<svg:circle id=\"circ1\" r=\"1cm\" cx=\"3cm\" cy=\"3cm\" style=\"fill:red;\"></svg:circle>\n\t<svg:circle id=\"circ2\" r=\"1cm\" cx=\"7cm\" cy=\"3cm\" style=\"fill:red;\" />\n </svg:g>\n</svg:svg>")
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
-----| WARNING | -----
|
||||
<pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
||||
<svg:svg/></pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
|
||||
<svg:svg
|
||||
width="600px" height="400px">
|
||||
<svg:g id="group">
|
||||
<svg:circle id="circ1" r="1cm" cx="3cm" cy="3cm" style="fill:red;"></svg:circle>
|
||||
<svg:circle id="circ2" r="1cm" cx="7cm" cy="3cm" style="fill:red;" />
|
||||
</svg:g>
|
||||
</svg:svg></pre>
|
||||
*** Output of to_latex ***
|
||||
|
||||
*** Output of to_md ***
|
||||
|
||||
*** Output of to_s ***
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p><svg:svg/></p>
|
||||
|
@ -51,16 +72,4 @@ width="600px" height="400px">
|
|||
</svg:svg></p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<p>
|
||||
<svg:svg/>
|
||||
</p>
|
||||
<p>
|
||||
<svg:svg height='400px' width='600px'>
|
||||
<svg:g id='group'>
|
||||
<svg:circle cy='3cm' id='circ1' r='1cm' cx='3cm' style='fill:red;'/>
|
||||
<svg:circle cy='3cm' id='circ2' r='1cm' cx='7cm' style='fill:red;'/>
|
||||
</svg:g>
|
||||
</svg:svg>
|
||||
</p>
|
||||
</div>
|
||||
Error: #<REXML::UndefinedNamespaceException: Undefined prefix svg found>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue