Refresh

This website preview.rubydoc.info/gems/mathjax-rails/2.5.1/Mathjax/Rails/ViewHelpers is currently offline. Cloudflare\'s Always Online™ shows a snapshot of this web page from the Internet Archive\'s Wayback Machine. To check for the live version, click Refresh.

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