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:
laumann 2011-02-09 01:37:30 +01:00
parent b3634b522a
commit 3468f0a2c3
2 changed files with 8 additions and 1 deletions

View File

@ -90,6 +90,9 @@ module Jekyll
'coderay_bold_every' => 10,
'coderay_css' => 'style'
}
},
'redcloth' => {
'hard_breaks' => true
}
}

View File

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