如何在Jekyll中关闭智能引号和撇号?这打破了我的吞噬拼写过程.
我想要一句话doesn't直接引用.相反,Jekyll正在将它们转换为智能引号doesnt’,我需要它们保持单引号进行拼写检查.
这是我在_config.yml中尝试过的:
kramdown:
smartquotes: ["apos", "rsquo", "ldquo", "rdquo"]
Run Code Online (Sandbox Code Playgroud)
我正在使用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
Run Code Online (Sandbox Code Playgroud)
Dav*_*uel 26
smart_quotes缺少下划线,第二个数组项需要apos完全关闭撇号的智能引号.
kramdown:
smart_quotes: ["apos", "apos", "ldquo", "rdquo"]
Run Code Online (Sandbox Code Playgroud)
要关闭撇号/单引号和双引号的智能引号,请使用以下命令:
kramdown:
smart_quotes: ["apos", "apos", "quot", "quot"]
Run Code Online (Sandbox Code Playgroud)
这就是所谓的"程序员的世界兼容配置".
更多细节:
默认情况下,kramdown将apos和quot转换为印刷引号.那是:
默认配置提供指导:
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"]
Run Code Online (Sandbox Code Playgroud)
哪里:
Kramdown的文档提供了可能感兴趣的其他选项.在维基百科引号页面提供了大量的有关解释的并发症,以及如何Unicode的事情时引入改变的细节.
| 归档时间: |
|
| 查看次数: |
2072 次 |
| 最近记录: |