Misc Cleanup
Cleaned up some dependencies, and added a mime_types.yml file for Mongrel-compatibility.
This commit is contained in:
parent
f101ee9a21
commit
4586614914
89 changed files with 1265 additions and 1812 deletions
|
@ -54,58 +54,25 @@ $$ x = y $$$$ x$$ x = y $$$$ x = y $$
|
|||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math>
|
||||
<p>$$ x = y $$</p>
|
||||
|
||||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math>
|
||||
<p>$$ x
|
||||
= y $$</p>
|
||||
|
||||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math>
|
||||
<p>$$
|
||||
x = y $$</p>
|
||||
|
||||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>x</mi><mo>=</mo><mi>y</mi></math>
|
||||
<p>$$ x = y
|
||||
$$</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
x
|
||||
</mi>
|
||||
<mo>
|
||||
=
|
||||
</mo>
|
||||
<mi>
|
||||
y
|
||||
</mi>
|
||||
</math>
|
||||
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
x
|
||||
</mi>
|
||||
<mo>
|
||||
=
|
||||
</mo>
|
||||
<mi>
|
||||
y
|
||||
</mi>
|
||||
</math>
|
||||
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
x
|
||||
</mi>
|
||||
<mo>
|
||||
=
|
||||
</mo>
|
||||
<mi>
|
||||
y
|
||||
</mi>
|
||||
</math>
|
||||
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
x
|
||||
</mi>
|
||||
<mo>
|
||||
=
|
||||
</mo>
|
||||
<mi>
|
||||
y
|
||||
</mi>
|
||||
</math>
|
||||
</div>
|
||||
<div
|
||||
><p>$$ x = y $$</p
|
||||
><p>$$ x
|
||||
= y $$</p
|
||||
><p>$$
|
||||
x = y $$</p
|
||||
><p>$$ x = y
|
||||
$$</p
|
||||
></div
|
||||
>
|
|
@ -8,9 +8,9 @@
|
|||
<p>Here are some formulas:</p>
|
||||
|
||||
<ul>
|
||||
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>α</mi></math></span></li>
|
||||
<li><span class='maruku-inline'><code class='maruku-mathml'>\alpha</code></span></li>
|
||||
|
||||
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><msup><mi>x</mi> <mi>n</mi></msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi></msup><mo>≠</mo><msup><mi>z</mi> <mi>n</mi></msup></math></span></li>
|
||||
<li><span class='maruku-inline'><code class='maruku-mathml'>x^{n}+y^{n} \neq z^{n}</code></span></li>
|
||||
</ul>
|
||||
|
||||
<p>That’s it, nothing else is supported.</p>
|
||||
|
|
103
vendor/plugins/maruku/tests/unittest/math/inline.md
vendored
103
vendor/plugins/maruku/tests/unittest/math/inline.md
vendored
|
@ -48,104 +48,29 @@ Here are some formulas:Thats it, nothing else is supported.
|
|||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
Failed tests: [:to_html]
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_par(["Here are some formulas:"]),
|
||||
md_el(:ul,[
|
||||
md_el(:li_span,[md_el(:inline_math,[],{:math=>"\\alpha"},[])],{:want_my_paragraph=>false},[]),
|
||||
md_el(:li_span,[md_el(:inline_math,[],{:math=>"x^{n}+y^{n} \\neq z^{n}"},[])],{:want_my_paragraph=>false},[])
|
||||
],{},[]),
|
||||
md_par(["That", md_entity("rsquo"), "s it, nothing else is supported."])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
-----| WARNING | -----
|
||||
<p>Here are some formulas:</p>
|
||||
|
||||
<ul>
|
||||
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>α</mi></math></span></li>
|
||||
|
||||
<li><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><msup><mi>x</mi> <mi>n</mi></msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi></msup><mo>≠</mo><msup><mi>z</mi> <mi>n</mi></msup></math></span></li>
|
||||
</ul>
|
||||
|
||||
<p>That’s it, nothing else is supported.</p>
|
||||
*** Output of to_latex ***
|
||||
Here are some formulas:
|
||||
|
||||
\begin{itemize}%
|
||||
\item $\alpha$
|
||||
\item $x^{n}+y^{n} \neq z^{n}$
|
||||
|
||||
\end{itemize}
|
||||
That'{}s it, nothing else is supported.
|
||||
*** Output of to_md ***
|
||||
Here are some formulas:
|
||||
|
||||
--
|
||||
That s it, nothing else is supported.
|
||||
*** Output of to_s ***
|
||||
Here are some formulas:Thats it, nothing else is supported.
|
||||
*** Output of Markdown.pl ***
|
||||
<p>Here are some formulas:</p>
|
||||
|
||||
<ul>
|
||||
<li><math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>α</mi></math></li>
|
||||
<li><math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><msup><mi>x</mi> <mi>n</mi></msup><mo>+</mo><msup><mi>y</mi> <mi>n</mi></msup><mo>≠</mo><msup><mi>z</mi> <mi>n</mi></msup></math></li>
|
||||
<li>$\alpha$</li>
|
||||
<li>$x^{n}+y^{n} \neq z^{n}$</li>
|
||||
</ul>
|
||||
|
||||
<p>That's it, nothing else is supported.</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<p>
|
||||
Here are some formulas:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
α
|
||||
</mi>
|
||||
</math>
|
||||
</li>
|
||||
<li>
|
||||
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<msup>
|
||||
<mi>
|
||||
x
|
||||
</mi>
|
||||
<mi>
|
||||
n
|
||||
</mi>
|
||||
</msup>
|
||||
<mo>
|
||||
+
|
||||
</mo>
|
||||
<msup>
|
||||
<mi>
|
||||
y
|
||||
</mi>
|
||||
<mi>
|
||||
n
|
||||
</mi>
|
||||
</msup>
|
||||
<mo>
|
||||
≠
|
||||
</mo>
|
||||
<msup>
|
||||
<mi>
|
||||
z
|
||||
</mi>
|
||||
<mi>
|
||||
n
|
||||
</mi>
|
||||
</msup>
|
||||
</math>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
That's it, nothing else is supported.
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
><p>Here are some formulas:</p
|
||||
><ul>
|
||||
<li>$\alpha$</li
|
||||
>
|
||||
<li>$x^{n}+y^{n} \neq z^{n}$</li
|
||||
>
|
||||
</ul
|
||||
><p>That's it, nothing else is supported.</p
|
||||
></div
|
||||
>
|
|
@ -4,9 +4,14 @@
|
|||
"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='maruku-equation' id='eq:eq1'><span class='maruku-eq-number'>(1)</span><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>α</mi></math><div class='maruku-eq-tex'><code style='display: none'> \alpha
|
||||
<body><div class='maruku-equation' id='eq:eq1'><span class='maruku-eq-number'>(1)</span><code class='maruku-mathml'> \alpha
|
||||
|
||||
</code></div></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>α</mi></math><div class='maruku-eq-tex'><code style='display: none'> \alpha
|
||||
</code><div class='maruku-eq-tex'><code style='display: none'> \alpha
|
||||
|
||||
</code></div></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>β</mi></math><div class='maruku-eq-tex'><code style='display: none'> \beta
|
||||
</code></div></div><div class='maruku-equation'><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><mi>γ</mi></math><div class='maruku-eq-tex'><code style='display: none'> \gamma </code></div></div></body></html>
|
||||
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \alpha
|
||||
|
||||
</code><div class='maruku-eq-tex'><code style='display: none'> \alpha
|
||||
|
||||
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \beta
|
||||
</code><div class='maruku-eq-tex'><code style='display: none'> \beta
|
||||
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \gamma </code><div class='maruku-eq-tex'><code style='display: none'> \gamma </code></div></div></body></html>
|
|
@ -52,12 +52,50 @@ md_el(:document,[
|
|||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
Failed tests: [:to_html]
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_el(:equation,[],{:label=>"eq1",:math=>"\t\\alpha\n\n",:num=>1},[]),
|
||||
md_el(:equation,[],{:label=>nil,:math=>"\t\\alpha\n\n",:num=>nil},[]),
|
||||
md_el(:equation,[],{:label=>nil,:math=>" \\beta\n",:num=>nil},[]),
|
||||
md_el(:equation,[],{:label=>nil,:math=>" \\gamma ",:num=>nil},[])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
-----| WARNING | -----
|
||||
<div class='maruku-equation' id='eq:eq1'><span class='maruku-eq-number'>(1)</span><code class='maruku-mathml'> \alpha
|
||||
|
||||
</code><div class='maruku-eq-tex'><code style='display: none'> \alpha
|
||||
|
||||
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \alpha
|
||||
|
||||
</code><div class='maruku-eq-tex'><code style='display: none'> \alpha
|
||||
|
||||
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \beta
|
||||
</code><div class='maruku-eq-tex'><code style='display: none'> \beta
|
||||
</code></div></div><div class='maruku-equation'><code class='maruku-mathml'> \gamma </code><div class='maruku-eq-tex'><code style='display: none'> \gamma </code></div></div>
|
||||
*** Output of to_latex ***
|
||||
\begin{equation}
|
||||
\alpha
|
||||
\label{eq1}\end{equation}
|
||||
\begin{displaymath}
|
||||
\alpha
|
||||
\end{displaymath}
|
||||
\begin{displaymath}
|
||||
\beta
|
||||
\end{displaymath}
|
||||
\begin{displaymath}
|
||||
\gamma
|
||||
\end{displaymath}
|
||||
*** Output of to_md ***
|
||||
|
||||
*** Output of to_s ***
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>α</mi></math>
|
||||
<p>[
|
||||
\alpha
|
||||
]</p>
|
||||
|
||||
<p>\begin{equation}
|
||||
\alpha
|
||||
|
@ -69,19 +107,15 @@ md_el(:document,[
|
|||
<p>\begin{equation} \gamma \end{equation}</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
α
|
||||
</mi>
|
||||
</math>
|
||||
<p>
|
||||
\begin{equation} \alpha \end{equation}
|
||||
</p>
|
||||
<p>
|
||||
\begin{equation} \beta \end{equation}
|
||||
</p>
|
||||
<p>
|
||||
\begin{equation} \gamma \end{equation}
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
><p>[
|
||||
\alpha
|
||||
]</p
|
||||
><p>\begin{equation}
|
||||
\alpha
|
||||
\end{equation}</p
|
||||
><p>\begin{equation} \beta
|
||||
\end{equation}</p
|
||||
><p>\begin{equation} \gamma \end{equation}</p
|
||||
></div
|
||||
>
|
|
@ -32,24 +32,13 @@ This is not $math$.[ \alpha ]
|
|||
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<p>This is not <math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>math</mi></math>.</p>
|
||||
<p>This is not $math$.</p>
|
||||
|
||||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><mi>α</mi></math>
|
||||
<p>[ \alpha ]</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<p>
|
||||
This is not
|
||||
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
math
|
||||
</mi>
|
||||
</math>
|
||||
.
|
||||
</p>
|
||||
<math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
α
|
||||
</mi>
|
||||
</math>
|
||||
</div>
|
||||
<div
|
||||
><p>This is not $math$.</p
|
||||
><p>[ \alpha ]</p
|
||||
></div
|
||||
>
|
|
@ -27,49 +27,27 @@ md_el(:document,[
|
|||
|
||||
|
||||
|
||||
OK!
|
||||
|
||||
Failed tests: [:to_html]
|
||||
|
||||
*** Output of inspect ***
|
||||
md_el(:document,[
|
||||
md_html("<table markdown='1'>\n\t$\\alpha$\n\t<thead>\n\t\t<td>$\\beta$</td>\n\t</thead>\n</table>")
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
-----| WARNING | -----
|
||||
<table><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>α</mi></math></span><thead>
|
||||
<td><span class='maruku-inline'><math class='maruku-mathml' display='inline' xmlns='http://www.w3.org/1998/Math/MathML'><mi>β</mi></math></span></td>
|
||||
</thead>
|
||||
</table>
|
||||
*** Output of to_latex ***
|
||||
|
||||
*** Output of to_md ***
|
||||
|
||||
*** Output of to_s ***
|
||||
|
||||
*** Output of Markdown.pl ***
|
||||
<table markdown='1'>
|
||||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>α</mi></math>
|
||||
$\alpha$
|
||||
<thead>
|
||||
<td><math xmlns='http://www.w3.org/1998/Math/MathML' display='inline'><mi>β</mi></math></td>
|
||||
<td>$\beta$</td>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<table markdown='1'>
|
||||
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
α
|
||||
</mi>
|
||||
</math>
|
||||
<thead>
|
||||
<td>
|
||||
<math display='inline' xmlns='http://www.w3.org/1998/Math/MathML'>
|
||||
<mi>
|
||||
β
|
||||
</mi>
|
||||
</math>
|
||||
</td>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
<div
|
||||
><table markdown='1'>
|
||||
$\alpha$
|
||||
<thead>
|
||||
<td>$\beta$</td
|
||||
>
|
||||
</thead
|
||||
>
|
||||
</table
|
||||
></div
|
||||
>
|
|
@ -57,12 +57,11 @@ SymbolMeaningcomments The firstI like it. The firstI like it.
|
|||
<p>{:r: scope='row'}</p>
|
||||
|
||||
*** Output of Markdown.pl (parsed) ***
|
||||
<div>
|
||||
<p>
|
||||
Symbol | Meaning | comments ------------|---------|--------- {:r} α |
|
||||
The first | I like it. {:r} ℵ | The first | I like it.
|
||||
</p>
|
||||
<p>
|
||||
{:r: scope='row'}
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
><p>Symbol | Meaning | comments
|
||||
------------|---------|---------
|
||||
{:r} α | The first | I like it.
|
||||
{:r} ℵ | The first | I like it.</p
|
||||
><p>{:r: scope='row'}</p
|
||||
></div
|
||||
>
|
Loading…
Add table
Add a link
Reference in a new issue