mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-01 02:05:35 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user