provide access to the parsed Nokogiri document fragment when rendering marked up content.

This commit is contained in:
rick
2010-12-02 14:47:20 -08:00
parent bffa4be78f
commit 2fe6b7b7f1
3 changed files with 33 additions and 3 deletions
+2 -2
View File
@@ -132,8 +132,8 @@ module Gollum
# Public: The formatted contents of the page.
#
# Returns the String data.
def formatted_data
@blob && @wiki.markup_class.new(self).render(historical?)
def formatted_data(&block)
@blob && @wiki.markup_class.new(self).render(historical?, &block)
end
# Public: The format of the page.