From 1e768734efe144f66c5b3a8c83dc0f96212e0612 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Wed, 22 Aug 2012 13:29:48 -0600 Subject: [PATCH] Disable MathJax by default. GitHub.com doesn't support MathJax. The parser is not MathJax aware which causes problems. --mathjax enables MathJax. --- bin/gollum | 4 ++-- lib/gollum/wiki.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/gollum b/bin/gollum index f4ef13fb..edf4215e 100755 --- a/bin/gollum +++ b/bin/gollum @@ -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 diff --git a/lib/gollum/wiki.rb b/lib/gollum/wiki.rb index 70337a0d..e803a297 100644 --- a/lib/gollum/wiki.rb +++ b/lib/gollum/wiki.rb @@ -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.