Class: JSC::MathJaxInline

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



14
15
16
17
# File 'lib/math_jax.rb', line 14

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