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:
parent
7185af32fc
commit
affc47fc22
|
@ -1,5 +1,6 @@
|
|||
require 'fileutils'
|
||||
require 'maruku'
|
||||
require 'maruku/ext/math'
|
||||
require 'zip/zip'
|
||||
require 'stringsupport'
|
||||
require 'resolv'
|
||||
|
|
|
@ -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/} +
|
||||
|
|
Loading…
Reference in a new issue