pull out markup to its own class
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
module Gollum
|
||||
class Markup
|
||||
# Render the content with Gollum wiki syntax on top of the file's own
|
||||
# markup language.
|
||||
#
|
||||
# name - The String filename of the page.
|
||||
# data - The String contents of the page.
|
||||
#
|
||||
# Returns the formatted String content.
|
||||
def self.render(name, data)
|
||||
GitHub::Markup.render(name, data) rescue nil
|
||||
end
|
||||
end
|
||||
end
|
||||
+1
-1
@@ -35,7 +35,7 @@ module Gollum
|
||||
#
|
||||
# Returns the String data.
|
||||
def formatted_data
|
||||
GitHub::Markup.render(@blob.name, @blob.data) rescue nil
|
||||
Gollum::Markup.render(@blob.name, @blob.data) rescue nil
|
||||
end
|
||||
|
||||
# Public: The format of the page.
|
||||
|
||||
Reference in New Issue
Block a user