lib/rollin/article.rb in rollin-0.1.1 vs lib/rollin/article.rb in rollin-0.1.2

- old
+ new

@@ -15,11 +15,11 @@ metatags['title'] || @title_from_filename end def matches?(search) return true if @id == search - return false if @searh.is_a? String + return false if search.is_a? String search = search.clone if search.has_key?(:year) return false if search.delete(:year) != @year @@ -62,10 +62,12 @@ def body redcarpet = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, space_after_headers: true, - hard_wrap: true) + hard_wrap: true, + fenced_code_blocks: true, + disable_indented_code_blocks: true) redcarpet.render(read_from_file.content) end private