bhollis/maruku

View on GitHub
lib/maruku/ext/math.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'maruku/ext/math/elements'
require 'maruku/ext/math/parsing'
require 'maruku/ext/math/to_latex'
require 'maruku/ext/math/to_html'

require 'maruku/ext/math/mathml_engines/none'
require 'maruku/ext/math/mathml_engines/ritex'
require 'maruku/ext/math/mathml_engines/itex2mml'
require 'maruku/ext/math/mathml_engines/blahtex'

#=begin maruku_doc
# Attribute: math_enabled
# Scope: global, document
# Summary: Enables parsing of LaTeX math
#
# To explicitly disable the math parsing:
#
#     Maruku.new(string, {:math_enabled => false})
#     {:ruby}
#
#=end

MaRuKu::Globals[:math_enabled] = true


#=begin maruku_doc
# Attribute: math_numbered
# Scope: global, document
# Summary: Math openings which should be numerated
#
# Array containing any of `'\\['`, `'\\begin{equation}'`, `'$$'`.
#
#     MaRuKu::Globals[:math_numbered] = ['\\[']
#
#=end

MaRuKu::Globals[:math_numbered] = []