Disable MathJax by default.

GitHub.com doesn't support MathJax. The parser is not MathJax aware which causes problems.

--mathjax enables MathJax.
This commit is contained in:
bootstraponline
2012-08-22 13:29:48 -06:00
parent 11c9cabeb3
commit 1e768734ef
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -65,8 +65,8 @@ opts = OptionParser.new do |opts|
wiki_options[:live_preview] = false
end
opts.on("--no-mathjax", "Disables mathjax.") do
options['mathjax'] = false
opts.on("--mathjax", "Enables mathjax.") do
options['mathjax'] = true
end
end
+1 -1
View File
@@ -179,7 +179,7 @@ module Gollum
self.class.history_sanitization
@live_preview = options.fetch(:live_preview, true)
@universal_toc = options.fetch(:universal_toc, false)
@mathjax = options[:mathjax] || true
@mathjax = options[:mathjax] || false
end
# Public: check whether the wiki's git repo exists on the filesystem.