Class: JSC::MathJaxBlock

Inherits:
Liquid::Tag
  • Object
show all
Includes:
Plugin
Defined in:
lib/math_jax.rb

Instance Attribute Summary

Attributes included from Plugin

#ctx, #site

Instance Method Summary collapse

Methods included from Plugin

#config, #math_jax, #mj_config, #mj_local, #mj_local?, #mj_url, #set_ctx

Instance Method Details

#render(ctx) ⇒ Object



6
7
8
9
# File 'lib/math_jax.rb', line 6

def render(ctx)
  set_ctx ctx
  math_jax + '<script type="math/tex; mode=display">'
end