Support inline and display math.

$$2^2$$

$2^2$

\\(2^2\\)

[2^2]
This commit is contained in:
bootstraponline
2012-10-21 17:10:50 -06:00
parent f68bebe0f6
commit 5400b4bfdd
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = ">= 1.8.7" s.required_ruby_version = ">= 1.8.7"
s.name = 'gollum' s.name = 'gollum'
s.version = '2.3.0' s.version = '2.3.1'
s.date = '2012-10-21' s.date = '2012-10-21'
s.rubyforge_project = 'gollum' s.rubyforge_project = 'gollum'
+1 -1
View File
@@ -22,7 +22,7 @@ require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__) require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
module Gollum module Gollum
VERSION = '2.3.0' VERSION = '2.3.1'
def self.assets_path def self.assets_path
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__)) ::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
@@ -20,7 +20,13 @@
<script type="text/javascript" src="{{base_url}}/javascript/editor/gollum.editor.js"></script> <script type="text/javascript" src="{{base_url}}/javascript/editor/gollum.editor.js"></script>
{{#mathjax}} {{#mathjax}}
<script type="text/x-mathjax-config"> <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>
<script>(function(d,j){ <script>(function(d,j){
j = d.createElement('script'); j = d.createElement('script');