lib/math-to-itex.rb in math-to-itex-0.4.0 vs lib/math-to-itex.rb in math-to-itex-0.5.0

- old
+ new

@@ -34,16 +34,16 @@ type = :display end # this is the format itex2MML expects if type == :inline - just_maths = "$#{just_maths}$" + all_maths = "$#{just_maths}$" else - just_maths = "$$#{just_maths}$$" + all_maths = "$$#{just_maths}$$" end - next(just_maths) if block.nil? + next(all_maths) if block.nil? - yield just_maths, type + yield all_maths, type, just_maths end end end