# Using Kramdown to Enable LaTeX Equations on Octopress

Following these instructions I was able to get $\LaTeX$ equations interpreted and rendered correctly when posting to Octopress. It consists of installing the kramdown Markdown interpreter, updating the _config.yml and Gemfile, and putting the MathJax CDN and configs in source/_layouts/default.html.

For example, this block of code (taken from the aforementioned site):

is translated into this:

QAPLA’!

EDIT: I forgot to metion something that causes a little trouble when editing the Gemfile. When replacing gem 'rdiscount' with gem 'kramdown', the version number after the '~>' needs to be replaced as well. At the time of writing putting the current version number (0.14.1) for kramdown causes an error when running rake generate:

To fix this, replace gem 'kramdown', '~> 0.14.1' with gem 'kramdown', '~> 0.13.8' in the Gemfile. Running rake generate is now successful: