如何关闭Jekyll中的智能引号?

如何关闭Jekyll中的智能引号?,jekyll,kramdown,Jekyll,Kramdown,如何关闭Jekyll中的智能引号和撇号?它打破了我的吞咽拼写检查过程 我希望像这样的词不只保留一个直接的引号。相反,杰基尔正在将它们转换为智能引号,如doesnt',我需要它们保持单引号以进行拼写检查 这是我在我的_config.yml中尝试的: kramdown: smartquotes: ["apos", "rsquo", "ldquo", "rdquo"] 我用的是克拉姆敦 这是我的全部配置: name: Bitcoin Bulls markdown: kramdown tim

如何关闭Jekyll中的智能引号和撇号?它打破了我的吞咽拼写检查过程

我希望像
这样的词不
只保留一个直接的引号。相反,杰基尔正在将它们转换为智能引号,如
doesnt'
,我需要它们保持单引号以进行拼写检查

这是我在我的_config.yml中尝试的:

kramdown:
    smartquotes:  ["apos", "rsquo", "ldquo", "rdquo"]
我用的是克拉姆敦

这是我的全部配置:

name: Bitcoin Bulls
markdown: kramdown
timezone: America/Detroit
highlighter: pygments
author: David Smith
safe: true
lsi: false
permalink: none

url: http://www.bitcoinbulls.net
exclude:  [CNAME, Gemfile, Gemfile.lock, '*.less', gruntfile.js, custom_css, node_modules, README.md, '*.svg', '*.docx']
include: [glyphicons-halflings-regular.svg]


kramdown:
    smart_quotes: ["rdquo", "rsquo", "ldquo", "rdquo"]


relative_permalinks: false

defaults:
  -
    scope:
      path: "" # empty string for all files
    values:
      layout: "default"
  -
    scope:
      path: "" # empty string for all files
      type: post
    values:
      layout: "post"
      is_post: true

smart_quotes
中的下划线缺失,第二个数组项必须是
apos
,才能完全关闭撇号的smart quotes

kramdown:
    smart_quotes:  ["apos", "apos", "ldquo", "rdquo"]
要同时关闭撇号/单引号和双引号的智能引号,请使用以下命令:

kramdown:
    smart_quotes: ["apos", "apos", "quot", "quot"]
这就是所谓的“程序员世界兼容配置”


更多详情:

默认情况下,kramdown将APO和QUOTE转换为排版引号。即:

  • “撇号”变为“撇号”
  • “报价”变为“报价”
默认配置提供以下指导:

kramdown:

  # smart_quotes: 
  #
  #   first parameter : how an opening apostrophe is transformed
  #                     or apostrophe like in "I'm"
  #           default : ' -> ‘ (lsquo)
  #              apos : ' -> '
  #
  #   second parameter : how a closing apostrophe is transformed
  #           default : ' -> ’ (rsquo)
  #              apos : ' -> '
  #
  #   third parameter : how an opening double quote is transformed
  #           default : " -> “ (ldquo)
  #              quot : " -> "
  #
  #   fourth parameter : how a closing double quote is transformed
  #           default : " -> ” (rdquo)
  #              quot : " -> "
  #
  #   Default kramdown config
  #     smart_quotes: ["rdquo", "rsquo", "ldquo", "rdquo"]
  # 
  #   Programmer's world compliant config :
  #     smart_quotes: ["apos", "apos", "quot", "quot"]
其中:

  • QUOTE=“:中性引号
  • apos=':在I'm中使用撇号
  • lsquo=':排版开头单引号
  • rsquo=':印刷结束单引号
  • ldquo=“:排版开头双引号
  • rdquo=“:印刷关闭双引号

提供了可能感兴趣的其他选项。提供了大量有关解释复杂性的详细信息,以及Unicode引入后的变化。

出于好奇,您为什么要这样做?单勾号和双勾号(“,”)不是撇号或引号,它们表示英尺和英寸,分与秒,等等。@Rick我使用的拼写检查解决方案将所有带有智能引号的内容标记为拼写错误:(太令人沮丧了!