Skip to content

Instantly share code, notes, and snippets.

@jonmagic
Created January 23, 2014 15:08
Show Gist options
  • Save jonmagic/8580057 to your computer and use it in GitHub Desktop.
Save jonmagic/8580057 to your computer and use it in GitHub Desktop.
module Gollum
module HTML
# HTML::Pipeline filter for processing contents with GitHub::Markup
class MarkupFilter < ::HTML::Pipeline::TextFilter
def call
GitHub::Markup.render(context[:name], @text)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment