This commit is contained in:
Yuki 2015-05-26 04:56:58 +05:30
parent 00839f9b56
commit cd904ae1bc
3 changed files with 12 additions and 3 deletions

View File

@ -16,7 +16,7 @@ module MarkdownHelper
end end
def raw_markdown(content) 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 raw md.render content
end end

View File

@ -15,4 +15,13 @@ MARKDOWN_OPTS = {
disable_indented_code_blocks: true, disable_indented_code_blocks: true,
strikethrough: true, strikethrough: true,
superscript: false superscript: false
} }
RAW_MARKDOWN_OPTS = {
tables: true,
fenced_code_blocks: true,
autolink: true,
disable_indented_code_blocks: true,
strikethrough: true,
superscript: false
}

@ -1 +1 @@
Subproject commit 95189e89259051d36676f8bc9f8d93e2041e4030 Subproject commit 7f6cd02e6efe2e78322ab9b651c32606f95695f4