0

RedCloth FAQ描述了使用fold_lines禁用硬中断的选项。fold_lines在 Jekyll 的构建过程中调用 RedCloth 时,传递给 RedCloth 的最简单方法是什么?

(我只是在Jekyll 配置指南中遗漏了一些东西吗?

4

1 回答 1

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']
于 2015-05-19T21:15:38.180 回答