Skip to content

Instantly share code, notes, and snippets.

@brianm
Created July 21, 2010 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianm/484723 to your computer and use it in GitHub Desktop.
Save brianm/484723 to your computer and use it in GitHub Desktop.
require 'org-ruby'
module Jekyll
class OrgModeConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /org/i
end
def output_ext(ext)
".html"
end
def convert(content)
Orgmode::Parser.new(content).to_html
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment