Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Commit

Permalink
Support inline and display math.
Browse files Browse the repository at this point in the history
$$2^2$$

$2^2$

\\(2^2\\)

[2^2]
  • Loading branch information
bootstraponline committed Oct 21, 2012
1 parent f68bebe commit 5400b4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gollum.gemspec
Expand Up @@ -5,7 +5,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = ">= 1.8.7"

s.name = 'gollum'
s.version = '2.3.0'
s.version = '2.3.1'
s.date = '2012-10-21'
s.rubyforge_project = 'gollum'

Expand Down
2 changes: 1 addition & 1 deletion lib/gollum.rb
Expand Up @@ -22,7 +22,7 @@
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)

module Gollum
VERSION = '2.3.0'
VERSION = '2.3.1'

def self.assets_path
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
Expand Down
8 changes: 7 additions & 1 deletion lib/gollum/frontend/templates/layout.mustache
Expand Up @@ -20,7 +20,13 @@
<script type="text/javascript" src="{{base_url}}/javascript/editor/gollum.editor.js"></script>
{{#mathjax}}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ TeX: { extensions: ["autoload-all.js"] }});
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ['\\(','\\)']],
displayMath: [ ['$$','$$'], ['\[','\]'] ],
processEscapes: true
},
TeX: { extensions: ["autoload-all.js"] }});
</script>
<script>(function(d,j){
j = d.createElement('script');
Expand Down

0 comments on commit 5400b4b

Please sign in to comment.