[RESTORES BUILD] RedCloth does not support hard breaks in mixed mode
This commit is contained in:
parent
a251b658f1
commit
5c97cc593e
2 changed files with 5 additions and 3 deletions
|
@ -43,7 +43,7 @@ module Engines
|
|||
|
||||
class Mixed < AbstractEngine
|
||||
def mask
|
||||
RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]).to_html(
|
||||
RedCloth.new(@content, @content.options[:engine_opts]).to_html(
|
||||
:textile, :markdown)
|
||||
end
|
||||
end
|
||||
|
@ -54,6 +54,6 @@ module Engines
|
|||
end
|
||||
end
|
||||
|
||||
MAP = { :textile => Textile, :markdown => Markdown, :mixed => Mixed, :rdoc => RDoc, }
|
||||
MAP = { :textile => Textile, :markdown => Markdown, :mixed => Mixed, :rdoc => RDoc }
|
||||
MAP.default = Textile
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue