Fix TeX Rendering Bug

Make sure we

  require 'maruku/ext/math'

before calling the Maruku#to_latex method.

Also, update test for itex2MML 1.3.11 .
This commit is contained in:
Jacques Distler 2009-09-13 11:23:57 -05:00
parent 7185af32fc
commit affc47fc22
2 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,6 @@
require 'fileutils'
require 'maruku'
require 'maruku/ext/math'
require 'zip/zip'
require 'stringsupport'
require 'resolv'

View file

@ -211,6 +211,14 @@ END_THM
end
def test_have_latest_itex2mml
assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' displa} +
%{y='inline' xmlns='http://www.w3.org/1998/Math/} +
%{MathML'><mi>A</mi><mo>\342\206\255</mo><mi>B</} +
%{mi></math></p>},
"equation $A \\leftrightsquigarrow B$")
assert_markup_parsed_as(
%{<p>equation <math class='maruku-mathml' displa} +
%{y='inline' xmlns='http://www.w3.org/1998/Math/} +