lib/polytexnic/literal.rb in polytexnic-1.9.1 vs lib/polytexnic/literal.rb in polytexnic-1.9.2
- old
+ new
@@ -21,18 +21,13 @@
def math_environments
%w[align eqnarray equation gather gathered multline] +
%w[align* eqnarray* equation* gather* multline*]
end
- def math_environments_starred
- %w[align* eqnarray* equation* gather* multline*]
- end
-
# Returns a list of all literal types.
def literal_types
- %w[verbatim Vertatim code metacode] +
- math_environments
+ %w[verbatim Vertatim code metacode] + math_environments
end
# Handles environments that should be passed through the pipeline intact.
# The includes verbatim environments ('verbatim', 'Verbatim') and all the
# equation environments handled by MathJax ('equation', 'align', etc.).
@@ -81,11 +76,9 @@
elsif line.begin_literal?
in_verbatim = true
literal_type = line.literal_type
skip = line.math_environment? || latex
if line.math_environment? && !latex
- # puts line
- # puts "****"
output << '\begin{xmlelement*}{equation}'
if line.starred?
output << '\begin{equation*}'
else
output << '\begin{equation}'