diff --git a/app/helpers/markdown_helper.rb b/app/helpers/markdown_helper.rb index 94cca473..bc49c89b 100644 --- a/app/helpers/markdown_helper.rb +++ b/app/helpers/markdown_helper.rb @@ -16,7 +16,7 @@ module MarkdownHelper end def raw_markdown(content) - md = Redcarpet::Markdown.new(Redcarpet::Render::HTML) + md = Redcarpet::Markdown.new(Redcarpet::Render::HTML, RAW_MARKDOWN_OPTS) raw md.render content end diff --git a/config/initializers/redcarpet.rb b/config/initializers/redcarpet.rb index 86df114b..da4a6a8e 100644 --- a/config/initializers/redcarpet.rb +++ b/config/initializers/redcarpet.rb @@ -15,4 +15,13 @@ MARKDOWN_OPTS = { disable_indented_code_blocks: true, strikethrough: true, superscript: false -} \ No newline at end of file +} + +RAW_MARKDOWN_OPTS = { + tables: true, + fenced_code_blocks: true, + autolink: true, + disable_indented_code_blocks: true, + strikethrough: true, + superscript: false +} diff --git a/service-docs b/service-docs index 95189e89..7f6cd02e 160000 --- a/service-docs +++ b/service-docs @@ -1 +1 @@ -Subproject commit 95189e89259051d36676f8bc9f8d93e2041e4030 +Subproject commit 7f6cd02e6efe2e78322ab9b651c32606f95695f4