如何在Jekyll中添加GFM任务列表?

如何在Jekyll中添加GFM任务列表?,jekyll,github-pages,github-flavored-markdown,kramdown,Jekyll,Github Pages,Github Flavored Markdown,Kramdown,GFM支持任务列表: 如何在Jekyll页面中使用此选项?在我的网站的\u config.yml # Build settings markdown: kramdown kramdown: input: GFM hard_wrap: false 这适用于大多数其他GFM构造。但不是任务列表 降价示例: #### Checklist for Aggregations - [ ] Always add `max(x)` in the group for size of buckets n

GFM支持任务列表:

如何在Jekyll页面中使用此选项?在我的网站的
\u config.yml

# Build settings
markdown: kramdown
kramdown:
  input: GFM
  hard_wrap: false
这适用于大多数其他GFM构造。但不是任务列表

降价示例:

#### Checklist for Aggregations
- [ ] Always add `max(x)` in the group for size of buckets needed. When data is distributed across multiple content nodes this result can be inaccurate. To increase accuracy we need to use `precision(x)` as well to tune accuracy as we need.
预期:

现实:

您使用的是kramdown的哪个版本?GFM任务列表从开始就受支持(中发布了错误修复)。要删除项目符号列表

在我的系统上,以下测试文件

---
---

- [ ] Unchecked
- [x] Checked
{: style='list-style-type: none'}
生成预期的

使用kramdown 1.16.2和Jekyll 3.6.2。如果您的kramdown早于1.16.1,您应该能够

$ gem update kramdown

获取功能。

请注意,截至2018年1月5日,GitHub页面上使用的Kramdown版本为
1.14.0
,因此这对GitHub页面不起作用。