github-pages 171 → 172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1864bc5493c125c77562eb6fe6c3724ec5489d0e
4
- data.tar.gz: 81ca4f01fdf45a1602a05269950294944fb5a9cc
3
+ metadata.gz: 06ec21daca222772e82585c33d106c27aa9d9fcb
4
+ data.tar.gz: 454482d6fa102ac0d2aa28ac761af849d1478672
5
5
  SHA512:
6
- metadata.gz: 89d8ce3aa921db717314e6f67afbc7b92f4e894ecdd846a9a707a2a2cf3934a41ea8c472f6bdce2e5d6ec1479eff0304890ac033f9fa3f33fc2e5d1be4389851
7
- data.tar.gz: 999d9197334d6e0bc8c6021ab3c788be22e5414db33cd7131bcf1a1ac65568f6ae147f8d655f770799d443bf7cd70b0d5e1c2c911637329eddf7ff066406f8e4
6
+ metadata.gz: b15b9952c3ba5b5086c683717b4d526b7ddf3b793a0627b1c97fb9a84bff478bacc1f5a1ec9a626a0d431dd3cb79c2418bc83ba9e37bfeac8f72a02ec4947512
7
+ data.tar.gz: 6b3e7555470c2dc0618e2db4fc416e84509927f5440220b934778dcbe2b0f86910f5fa87c9803afe13b3f24e7a9b33c65870b64c696664ba6ced818ec66eb084
@@ -103,7 +103,7 @@ module GitHubPages
103
103
  # Merge overwrites into user config
104
104
  config = Jekyll::Utils.deep_merge_hashes config, OVERRIDES
105
105
 
106
- restrict_markdown_processor(config)
106
+ restrict_and_config_markdown_processor(config)
107
107
 
108
108
  # Ensure we have those gems we want.
109
109
  config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
@@ -121,9 +121,20 @@ module GitHubPages
121
121
 
122
122
  # Ensure we're using Kramdown or GFM. Force to Kramdown if
123
123
  # neither of these.
124
- def restrict_markdown_processor(config)
124
+ #
125
+ # This can get called multiply on the same config, so try to
126
+ # be idempotentish.
127
+ def restrict_and_config_markdown_processor(config)
125
128
  config["markdown"] = "kramdown" unless \
126
- %w(kramdown gfm).include?(config["markdown"].to_s.downcase)
129
+ %w(kramdown gfm commonmarkghpages).include?(config["markdown"].to_s.downcase)
130
+
131
+ return unless config["markdown"].to_s.casecmp("gfm").zero?
132
+
133
+ config["markdown"] = "CommonMarkGhPages"
134
+ config["commonmark"] = {
135
+ "extensions" => %w(table strikethrough autolink tagfilter),
136
+ "options" => %w(footnotes),
137
+ }
127
138
  end
128
139
 
129
140
  # Set the site's configuration. Implemented as an `after_reset` hook.
@@ -12,6 +12,7 @@ module GitHubPages
12
12
 
13
13
  # Converters
14
14
  "kramdown" => "1.14.0",
15
+ "jekyll-commonmark-ghpages" => "0.1.3",
15
16
 
16
17
  # Misc
17
18
  "liquid" => "4.0.0",
@@ -6,6 +6,7 @@ module GitHubPages
6
6
  # Plugins which are activated by default
7
7
  DEFAULT_PLUGINS = %w(
8
8
  jekyll-coffeescript
9
+ jekyll-commonmark-ghpages
9
10
  jekyll-gist
10
11
  jekyll-github-metadata
11
12
  jekyll-paginate
@@ -20,6 +21,7 @@ module GitHubPages
20
21
  # Plugins allowed by GitHub Pages
21
22
  PLUGIN_WHITELIST = %w(
22
23
  jekyll-coffeescript
24
+ jekyll-commonmark-ghpages
23
25
  jekyll-feed
24
26
  jekyll-gist
25
27
  jekyll-github-metadata
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitHubPages
4
- VERSION = 171
4
+ VERSION = 172
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: '171'
4
+ version: '172'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.14.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: jekyll-commonmark-ghpages
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.1.3
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.1.3
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: liquid
57
71
  requirement: !ruby/object:Gem::Requirement