Module: Mathjax::Rails::ViewHelpers
- Defined in:
- lib/mathjax/rails/helpers.rb
Instance Method Summary collapse
Instance Method Details
#mathjax_tag(opt = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/mathjax/rails/helpers.rb', line 4 def mathjax_tag(opt={}) opt[:config] ||= 'TeX-AMS_HTML-full.js' opt[:config] = nil if opt[:config] == false "<script src=\"#{mathjax_path(:uri=>'MathJax.js', config: opt[:config])}\" type=\"text/javascript\"></script>".html_safe end |