【问题标题】:How to pass parameters to RedCloth (Textile processor) from Jekyll如何从 Jekyll 将参数传递给 RedCloth(纺织处理器)
【发布时间】:2015-05-19 19:07:29
【问题描述】:

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

(我只是在Jekyll configuration guide 中遗漏了什么吗?

【问题讨论】:

    标签: jekyll textile redcloth


    【解决方案1】:

    在您的_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']
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多