gollum 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -19
- data/Rakefile +1 -0
- data/gollum.gemspec +1 -1
- data/lib/gollum.rb +1 -1
- data/lib/gollum/frontend/templates/layout.mustache +7 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -363,25 +363,7 @@ appropriately.
|
|
|
363
363
|
|
|
364
364
|
## MATHEMATICAL EQUATIONS
|
|
365
365
|
|
|
366
|
-
|
|
367
|
-
Page files may contain mathematic equations in TeX syntax that will be nicely
|
|
368
|
-
typeset into the expected output. A block-style equation is delimited by `\[`
|
|
369
|
-
and `\]`. For example:
|
|
370
|
-
|
|
371
|
-
\[ P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
|
|
372
|
-
|
|
373
|
-
Inline equations are delimited by `\(` and `\)`. These equations will appear
|
|
374
|
-
inline with regular text. For example:
|
|
375
|
-
|
|
376
|
-
The Pythagorean theorem is \( a^2 + b^2 = c^2 \).
|
|
377
|
-
|
|
378
|
-
### INSTALLATION REQUIREMENTS
|
|
379
|
-
|
|
380
|
-
In order to get the mathematical equations rendering to work, you need the following binaries:
|
|
381
|
-
|
|
382
|
-
* LaTex, TeTex or MacTex/BasicTeX (pdflatex)
|
|
383
|
-
* Netpbm (pnmcrop, pnmpad, pnmscale, ppmtopgm, pnmgamma, pnmtopng)
|
|
384
|
-
* Ghostscript (gs)
|
|
366
|
+
Start gollum with the `--mathjax` flag. Read more about [MathJax](http://docs.mathjax.org/en/latest/index.html) on the web. Gollum uses the `TeX-AMS-MML_HTMLorMML` config with the autoload-all extension.
|
|
385
367
|
|
|
386
368
|
## SEQUENCE DIAGRAMS
|
|
387
369
|
|
data/Rakefile
CHANGED
data/gollum.gemspec
CHANGED
data/lib/gollum.rb
CHANGED
|
@@ -22,7 +22,7 @@ require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
|
|
|
22
22
|
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
|
23
23
|
|
|
24
24
|
module Gollum
|
|
25
|
-
VERSION = '2.3.
|
|
25
|
+
VERSION = '2.3.1'
|
|
26
26
|
|
|
27
27
|
def self.assets_path
|
|
28
28
|
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
|
@@ -20,7 +20,13 @@
|
|
|
20
20
|
<script type="text/javascript" src="{{base_url}}/javascript/editor/gollum.editor.js"></script>
|
|
21
21
|
{{#mathjax}}
|
|
22
22
|
<script type="text/x-mathjax-config">
|
|
23
|
-
MathJax.Hub.Config({
|
|
23
|
+
MathJax.Hub.Config({
|
|
24
|
+
tex2jax: {
|
|
25
|
+
inlineMath: [ ['$','$'], ['\\(','\\)']],
|
|
26
|
+
displayMath: [ ['$$','$$'], ['\[','\]'] ],
|
|
27
|
+
processEscapes: true
|
|
28
|
+
},
|
|
29
|
+
TeX: { extensions: ["autoload-all.js"] }});
|
|
24
30
|
</script>
|
|
25
31
|
<script>(function(d,j){
|
|
26
32
|
j = d.createElement('script');
|