Skip to content

Instantly share code, notes, and snippets.


Jason jasongraham

  • Schweitzer Engineering Laboratories
  • Washington State, USA
View GitHub Profile
baldowl / gallery.rb
Created Apr 13, 2011
Rough gallery plugin for Jekyll
View gallery.rb
jessykate / Jekyll nd Octopress Liquid tag for MathJax.rb
Created Feb 18, 2011
A simple liquid tag for Jekyll/Octopress that converts {% m %} and {% em %} into inline math, and {% math %} and {% endmath %} into block equations, by replacing with the appropriate MathJax script tags.
View Jekyll nd Octopress Liquid tag for MathJax.rb
module Jekyll
class MathJaxBlockTag < Liquid::Tag
def render(context)
'<script type="math/tex; mode=display">'
class MathJaxInlineTag < Liquid::Tag
def render(context)
'<script type="math/tex">'