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:
+2
-2
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user