RedCloth FAQ描述了使用fold_lines
禁用硬中断的选项。fold_lines
在 Jekyll 的构建过程中调用 RedCloth 时,传递给 RedCloth 的最简单方法是什么?
(我只是在Jekyll 配置指南中遗漏了一些东西吗?
RedCloth FAQ描述了使用fold_lines
禁用硬中断的选项。fold_lines
在 Jekyll 的构建过程中调用 RedCloth 时,传递给 RedCloth 的最简单方法是什么?
(我只是在Jekyll 配置指南中遗漏了一些东西吗?
在您的_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']