lib/gitdocs/rendering.rb in gitdocs-0.4.6 vs lib/gitdocs/rendering.rb in gitdocs-0.4.7

- old
+ new

@@ -14,16 +14,9 @@ # Creates a instance of Redcarpet with the RedCloth # API. This instance has no extensions enabled whatsoever, # and no accessors to change this. 100% pure, standard # Markdown. class RedcarpetCompat - attr_accessor :text - - def initialize(text, *_dummy) - @text = text - @markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML) - end - def to_html(*_dummy) - @markdown.render(@text.force_encoding('utf-8')) + @markdown.render(@text.encode('utf-8')) end end \ No newline at end of file