lib/makeup/markup.rb in makeup-0.1.0 vs lib/makeup/markup.rb in makeup-0.1.1
- old
+ new
@@ -50,7 +50,11 @@
CodeBlockParser.parse(markup) do |lexer, code|
hb = @highlighter.highlight(path, code, { :lexer => lexer })
"<pre class=\"#{hb.lexer} #{@markup_class_name}\">#{hb.code}</pre>"
end
end
+
+ def self.can_render?(path)
+ GitHub::Markup.can_render?(path)
+ end
end
end