instiki/vendor/plugins/maruku/lib/maruku/ext/math.rb
Jacques Distler 06ae79322a Maruku Cleanup Branch
Use Nathan Weizenbaum's "cleanup" branch of
Maruku. There were a few evident problems
with his branch, so please report any
anomalies you see.
2010-06-04 21:36:31 -05:00

37 lines
854 B
Ruby

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] = []