Skip to content

Instantly share code, notes, and snippets.

@kathgironpe
Created June 10, 2010 10:57
Show Gist options
  • Save kathgironpe/432825 to your computer and use it in GitHub Desktop.
Save kathgironpe/432825 to your computer and use it in GitHub Desktop.
def to_html(markdown)
markdown = markdown.gsub("<code>", '<pre class="brush: ruby">').gsub("</code>", "</pre>")
markdown = RDiscount.new(markdown)
markdown = markdown.to_html
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment