Class: Octopress::Codefence::PostHook

Inherits:
Hooks::Post
  • Object
show all
Defined in:
lib/octopress-codefence.rb

Instance Method Summary collapse

Instance Method Details

#pre_render(post) ⇒ Object



19
20
21
# File 'lib/octopress-codefence.rb', line 19

def pre_render(post)
  post.content = Codefence::Highlighter.new(post.content, post.ext, post.site.config['code_aliases']).render
end