【发布时间】:2015-05-19 19:07:29
【问题描述】:
RedCloth FAQ 描述了使用fold_lines 选项来禁用硬中断。在 Jekyll 的构建过程中调用 fold_lines 到 RedCloth 时,最简单的方法是什么?
(我只是在Jekyll configuration guide 中遗漏了什么吗?
【问题讨论】:
RedCloth FAQ 描述了使用fold_lines 选项来禁用硬中断。在 Jekyll 的构建过程中调用 fold_lines 到 RedCloth 时,最简单的方法是什么?
(我只是在Jekyll configuration guide 中遗漏了什么吗?
【问题讨论】:
在您的_config.yml 文件中,您可以使用:
redcloth:
hard_breaks: false
来自 Jekyll 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']
【讨论】: