Module: Precious::HasMath

Included in:
Views::Create, Views::Edit, Views::Page
Defined in:
lib/gollum/views/has_math.rb

Instance Method Summary collapse

Instance Method Details

#katexObject



7
8
9
# File 'lib/gollum/views/has_math.rb', line 7

def katex
  @math == :katex
end

#math_configObject



11
12
13
# File 'lib/gollum/views/has_math.rb', line 11

def math_config
  @math_config ? page_route(@math_config) : false
end

#mathjaxObject



3
4
5
# File 'lib/gollum/views/has_math.rb', line 3

def mathjax
  @math == :mathjax
end