Skip to content

Commit a815e97

Browse files
Fix Redcarpet configuration to support Code Snippets and Tables
1 parent 6bf5378 commit a815e97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/helpers/application_helper.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ def markdown(text)
88
hard_wrap: true,
99
link_attributes: {rel: 'nofollow', target: '_blank'},
1010
space_after_headers: true,
11-
fenced_code_blocks: true,
1211
}
1312

1413
extensions = {
1514
autolink: true,
16-
superscript: true,
1715
disable_indented_code_blocks: true,
16+
fenced_code_blocks: true,
17+
strikethrough: true,
18+
superscript: true,
19+
tables: true,
1820
}
1921

2022
renderer = Redcarpet::Render::HTML.new(options)

0 commit comments

Comments
 (0)