Class: Octopress::Codefence::DocumentHook

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

Instance Method Summary collapse

Instance Method Details

#pre_render(document) ⇒ Object



25
26
27
# File 'lib/octopress-codefence.rb', line 25

def pre_render(document)
  document.content = Codefence::Highlighter.new(document.content).render
end