kramdown (sic, not Kramdown or KramDown, just kramdown) is a free GPL-licensed Ruby library for parsing and converting a superset of Markdown. It is completely written in Ruby, supports standard Markdown.
Install kramdown
First of all make sure you have ruby installed on your box:
1 2 |
|
If command “which ruby” returns nothing, then you should install it first.
1 2 |
|
Also you can use RVM, aka Ruby Version Manager, to install/manage your ruby entries, but actually I am not able to install ruby 1.9.2 approperately following the instruction from Octopress site on my PC which is ubuntu 12.04.
1
|
|
Change _config.yml and Gemfile to include kramdown
Change markdown engine to kramdown
1 2 3 |
|
Add kramdown to Gemfile
1 2 3 4 5 |
|
Next, install gem dependencies
1 2 |
|
Add MathJax.js to head.html
So far, we have installed kramdown, and attach the dependency of kramdown to project, the last thing we have to do is including MathJax.js to your html head, since by default MathJax.js is not included in html head.
1 2 |
|
## Show Cases
And,