我怎样才能在Jekyll中关闭智能引号和撇号? 它破坏了我的Gulp拼写检查过程。
我希望像doesn't
这样的单词保留单个直引号。但是,Jekyll将它们转换为智能引号,例如doesnt’
,而我需要它们保持单引号以进行拼写检查。
这是我在_config.yml中尝试的内容:
kramdown:
smartquotes: ["apos", "rsquo", "ldquo", "rdquo"]
我将使用kramdown进行翻译。
这是我的全部配置:
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