Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Render posts in SmartyPants mode. Fixes #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmans committed Feb 17, 2012
1 parent fca10c7 commit 269dfd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/schreihals/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

module Schreihals
class MarkdownRenderer < Redcarpet::Render::HTML
include Redcarpet::Render::SmartyPants

def block_code(code, language)
if language && !language.empty?
CodeRay.highlight(code, language.to_sym)
Expand Down

0 comments on commit 269dfd1

Please sign in to comment.