rdiscount

Syntax highlighting with CodeRay and Markdown (RDiscount) in a Rails 3 application

I'm trying to add some syntax highlighting to my blog that currently uses RDiscount. I am converting the Markdown to HTML with RDiscount then parsing the HTML code blocks with CodeRay to add syntax highlighting. This is what I have so far: class Post < ActiveRecord::Base before_save :render_body def render_body self.rendered_bo...