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

- old
+ new

@@ -30,9 +30,12 @@ just_maths = maths[12..-11] type = :inline elsif maths =~ /\A\\begin{displaymath}(?!\\begin{displaymath})/ just_maths = maths[19..-18] type = :display + elsif maths =~ /\A\\begin{#{MathToItex::Parser::JOINED_ENVIRONMENTS}}(?!\\begin{#{MathToItex::Parser::JOINED_ENVIRONMENTS}})/ + just_maths = maths + type = :display end # this is the format itex2MML expects if type == :inline all_maths = "$#{just_maths}$"