expanded config yaml to allow setting hard_breaks=false on RedCloth, modified textile converter to take this option into account
This commit is contained in:
parent
b3634b522a
commit
3468f0a2c3
|
@ -90,6 +90,9 @@ module Jekyll
|
|||
'coderay_bold_every' => 10,
|
||||
'coderay_css' => 'style'
|
||||
}
|
||||
},
|
||||
'redcloth' => {
|
||||
'hard_breaks' => true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,11 @@ module Jekyll
|
|||
|
||||
def convert(content)
|
||||
setup
|
||||
RedCloth.new(content).to_html
|
||||
r = RedCloth.new(content)
|
||||
if !@config['redcloth']['hard_breaks']
|
||||
r.hard_breaks = false
|
||||
end
|
||||
r.to_html
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue