如何将参数从Jekyll传递到RedCloth(纺织处理器)

如何将参数从Jekyll传递到RedCloth(纺织处理器),jekyll,textile,redcloth,Jekyll,Textile,Redcloth,描述了如何使用折叠线选项禁用硬中断。在Jekyll的构建过程中调用RedCloth时,将折叠线传递给RedCloth最简单的方法是什么 (我只是缺少了一些东西吗?在您的\u config.yml文件中,您可以使用: redcloth: hard_breaks: false 来自Jekyll转换器:textile.rb # List of attributes defined on RedCloth # (from https://github.com/jgarber/redcloth/bl

描述了如何使用
折叠线
选项禁用硬中断。在Jekyll的构建过程中调用RedCloth时,将
折叠线
传递给RedCloth最简单的方法是什么


(我只是缺少了一些东西吗?

在您的
\u config.yml
文件中,您可以使用:

redcloth:
  hard_breaks: false
来自Jekyll
转换器: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']