Fix another Maruku bbug

Image titles were not being output (a long-standing Maruku bug).
Also fix some broken specs. All the HTML specs pass. I hope they're
"correct".
This commit is contained in:
Jacques Distler 2011-08-14 02:16:15 -05:00
parent 070f689f9c
commit 5c51f930b0
6 changed files with 22 additions and 17 deletions

View file

@ -22,10 +22,14 @@ md_el(:document,[
md_el(:equation,[],{:label=>nil,:math=>" x = y \n",:num=>nil},[])
],{},[])
*** Output of to_html ***
<div class='maruku-equation'><code class='maruku-mathml'> x = y </code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
</code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
</code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div><div class='maruku-equation'><code class='maruku-mathml'> x = y
</code><span class='maruku-eq-tex'><code style='display: none'>x = y</code></span></div>
<div class="maruku-equation"><code class="maruku-mathml"> x = y </code><span class="maruku-eq-tex"><code style="display: none">x = y</code></span></div><div class="maruku-equation"><code class="maruku-mathml"> x
= y
</code><span class="maruku-eq-tex"><code style="display: none">x
= y</code></span></div><div class="maruku-equation"><code class="maruku-mathml">
x = y
</code><span class="maruku-eq-tex"><code style="display: none">x = y</code></span></div><div class="maruku-equation"><code class="maruku-mathml"> x = y
</code><span class="maruku-eq-tex"><code style="display: none">x = y</code></span></div>
*** Output of to_latex ***
\begin{displaymath}
x = y

View file

@ -22,9 +22,9 @@ md_el(:document,[
<p>Here are some formulas:</p>
<ul>
<li><code class='maruku-mathml'>\alpha</code></li>
<li><code class="maruku-mathml">\alpha</code></li>
<li><code class='maruku-mathml'>x^{n}+y^{n} \neq z^{n}</code></li>
<li><code class="maruku-mathml">x^{n}+y^{n} \neq z^{n}</code></li>
</ul>
<p>That&#8217;s it, nothing else is supported.</p>