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
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>
|
Loading…
Add table
Add a link
Reference in a new issue