From c35500a48cefb3bc23e27157630b9d35f7f62ddc Mon Sep 17 00:00:00 2001 From: cenon-delrosario Date: Sun, 31 Aug 2025 16:44:08 +1000 Subject: [PATCH] Fix Redcarpet configuration to support Code Snippets and Tables --- app/helpers/application_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 12f9026f..2c05c65f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -8,13 +8,15 @@ def markdown(text) hard_wrap: true, link_attributes: {rel: 'nofollow', target: '_blank'}, space_after_headers: true, - fenced_code_blocks: true, } extensions = { autolink: true, - superscript: true, disable_indented_code_blocks: true, + fenced_code_blocks: true, + strikethrough: true, + superscript: true, + tables: true, } renderer = Redcarpet::Render::HTML.new(options)