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:
Jacques Distler 2008-07-26 04:14:41 -05:00
parent 4e3aefd9d3
commit c427807274
33 changed files with 610 additions and 101 deletions

View 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>

View file

@ -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>

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>
<div>
<p>ciao</p>
</div>
</body></html>

View file

@ -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>

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>
<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>

View file

@ -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>

View file

@ -27,7 +27,7 @@ This is an email address:
*** Output of Markdown.pl ***
<p>This is an email address: <a href="&#x6D;&#97;i&#x6C;&#x74;o:&#x61;n&#100;r&#101;&#x61;&#64;&#x69;&#x6E;&#x76;&#97;&#108;&#105;&#100;&#46;&#105;&#x74;">&#x61;n&#100;r&#101;&#x61;&#64;&#x69;&#x6E;&#x76;&#97;&#108;&#105;&#100;&#46;&#105;&#x74;</a></p>
<p>This is an email address: <a href="&#109;&#x61;&#x69;&#x6C;&#x74;&#x6F;:&#x61;&#110;&#100;&#114;&#101;&#x61;&#64;&#x69;&#110;&#118;&#97;&#x6C;&#105;&#x64;&#x2E;&#105;&#116;">&#x61;&#110;&#100;&#114;&#101;&#x61;&#64;&#x69;&#110;&#118;&#97;&#x6C;&#105;&#x64;&#x2E;&#105;&#116;</a></p>
*** Output of Markdown.pl (parsed) ***
Error: #<TypeError: no implicit conversion from nil to integer>

View file

@ -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&#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>That&#8217;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&#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>
<a href='#fnref:3' rev='footnote'>&#8617;</a></li></ol></div></body></html>

View file

@ -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'

View file

@ -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="&#109;&#x61;&#105;l&#116;o:&#x62;&#x69;&#108;l&#64;&#x67;&#111;&#111;&#103;&#x6C;&#x65;&#46;&#99;&#x6F;&#x6D;">&#x62;&#x69;&#108;l&#64;&#x67;&#111;&#111;&#103;&#x6C;&#x65;&#46;&#99;&#x6F;&#x6D;</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="&#109;&#x61;&#105;&#108;&#x74;&#111;:&#x62;&#105;&#108;&#x6C;&#64;&#103;&#111;&#111;&#103;&#108;&#x65;&#46;c&#x6F;&#x6D;">&#x62;&#105;&#108;&#x6C;&#64;&#103;&#111;&#111;&#103;&#108;&#x65;&#46;c&#x6F;&#x6D;</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'

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>
<pre><code>@articles.map(&amp;:title)</code></pre>
</body></html>

View 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(&amp;: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(&amp;:title)
</code></pre>
*** Output of Markdown.pl (parsed) ***
<div>
<pre>
<code>
@articles.map(&amp;:title)
</code>
</pre>
</div>

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><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>

View 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>

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>
<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>&lt;http://www.dd.com&gt;</code></pre>
<p><a href='mailto:a@invalid.it'>&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
<p><a href='mailto:a@invalid.it'>&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
<p><a href='mailto:a@invalid.it'>&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
<pre><code>&lt;a@invalid.it&gt;</code></pre>
</body></html>

View 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>&lt;http://www.dd.com&gt;</code></pre>
<p><a href='mailto:a@invalid.it'>&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
<p><a href='mailto:a@invalid.it'>&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
<p><a href='mailto:a@invalid.it'>&#097;&#064;&#105;&#110;&#118;&#097;&#108;&#105;&#100;&#046;&#105;&#116;</a></p>
<pre><code>&lt;a@invalid.it&gt;</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>&lt;http://www.dd.com&gt;
</code></pre>
<p><a href="&#109;&#97;&#105;&#108;&#116;&#x6F;:&#97;&#64;i&#x6E;&#x76;&#x61;&#108;&#x69;&#100;.&#x69;&#x74;">&#97;&#64;i&#x6E;&#x76;&#x61;&#108;&#x69;&#100;.&#x69;&#x74;</a></p>
<p><a href="&#109;&#97;&#105;&#x6C;&#116;&#x6F;:&#x61;&#64;&#105;&#110;&#x76;&#97;&#108;i&#x64;&#46;&#105;t">&#x61;&#64;&#105;&#110;&#x76;&#97;&#108;i&#x64;&#46;&#105;t</a></p>
<p><a href="&#x6D;&#97;&#x69;&#x6C;&#x74;&#111;:&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#x69;&#116;">&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#x69;&#116;</a></p>
<pre><code>&lt;a@invalid.it&gt;
</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>
&lt;http://www.dd.com&gt;
</code>
</pre>
<p>
<a href='&#109;&#97;&#105;&#108;&#116;&#x6F;:&#97;&#64;i&#x6E;&#x76;&#x61;&#108;&#x69;&#100;.&#x69;&#x74;'>
&#97;&#64;i&#x6E;&#x76;&#x61;&#108;&#x69;&#100;.&#x69;&#x74;
</a>
</p>
<p>
<a href='&#109;&#97;&#105;&#x6C;&#116;&#x6F;:&#x61;&#64;&#105;&#110;&#x76;&#97;&#108;i&#x64;&#46;&#105;t'>
&#x61;&#64;&#105;&#110;&#x76;&#97;&#108;i&#x64;&#46;&#105;t
</a>
</p>
<p>
<a href='&#x6D;&#97;&#x69;&#x6C;&#x74;&#111;:&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#x69;&#116;'>
&#x61;&#64;&#105;&#x6E;&#118;&#x61;&#x6C;&#x69;&#100;&#x2E;&#x69;&#116;
</a>
</p>
<pre>
<code>
&lt;a@invalid.it&gt;
</code>
</pre>
</div>

View file

@ -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'

View file

@ -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:
&lt;svg:svg/&gt;</pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
&lt;svg:svg
width=&quot;600px&quot; height=&quot;400px&quot;&gt;
&lt;svg:g id=&quot;group&quot;&gt;
&lt;svg:circle id=&quot;circ1&quot; r=&quot;1cm&quot; cx=&quot;3cm&quot; cy=&quot;3cm&quot; style=&quot;fill:red;&quot;&gt;&lt;/svg:circle&gt;
&lt;svg:circle id=&quot;circ2&quot; r=&quot;1cm&quot; cx=&quot;7cm&quot; cy=&quot;3cm&quot; style=&quot;fill:red;&quot; /&gt;
&lt;/svg:g&gt;
&lt;/svg:svg&gt;</pre></body></html>

View file

@ -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:
&lt;svg:svg/&gt;</pre><pre class='markdown-html-error' style='border: solid 3px red; background-color: pink'>HTML parse error:
&lt;svg:svg
width=&quot;600px&quot; height=&quot;400px&quot;&gt;
&lt;svg:g id=&quot;group&quot;&gt;
&lt;svg:circle id=&quot;circ1&quot; r=&quot;1cm&quot; cx=&quot;3cm&quot; cy=&quot;3cm&quot; style=&quot;fill:red;&quot;&gt;&lt;/svg:circle&gt;
&lt;svg:circle id=&quot;circ2&quot; r=&quot;1cm&quot; cx=&quot;7cm&quot; cy=&quot;3cm&quot; style=&quot;fill:red;&quot; /&gt;
&lt;/svg:g&gt;
&lt;/svg:svg&gt;</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>