2015-05-19 37 views

回答

2

在你_config.yml文件,你可以使用:

redcloth: 
    hard_breaks: false 

从杰基尔converters:textile.rb

# List of attributes defined on RedCloth 
# (from https://github.com/jgarber/redcloth/blob/master/lib/redcloth/textile_doc.rb) 
attrs = ['filter_classes', 'filter_html', 'filter_ids', 'filter_styles', 
      'hard_breaks', 'lite_mode', 'no_span_caps', 'sanitize_html']