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
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

View File

@ -16,3 +16,12 @@ MARKDOWN_OPTS = {
strikethrough: true,
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