Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason jasongraham

  • Schweitzer Engineering Laboratories
  • Washington State, USA
View GitHub Profile
@baldowl
baldowl / gallery.rb
Created Apr 13, 2011
Rough gallery plugin for Jekyll
View gallery.rb
@jessykate
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">'
end
end
class MathJaxInlineTag < Liquid::Tag
def render(context)
'<script type="math/tex">'
end