app/helpers/lookbook/application_helper.rb in lookbook-0.4.2 vs app/helpers/lookbook/application_helper.rb in lookbook-0.4.3

- old
+ new

@@ -6,10 +6,15 @@ def config Lookbook::Engine.config.lookbook end def markdown(text) - Markdown.new(text).to_html.html_safe + markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, { + tables: true, + fenced_code_blocks: true, + disable_indented_code_blocks: true, + }) + markdown.render(text).html_safe end def highlight(source, language) formatter = Rouge::Formatters::HTML.new(css_class: "highlight") lexer = Rouge::Lexer.find(language)