github-pages 168 → 169

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 340e45fd1abd6f0ee1eb0b1a67859bd08d61112c
4
- data.tar.gz: b5c2d3bff481a0453f25d3d0bad636a94911d838
3
+ metadata.gz: e1fb456579ddd031b41727097a8b3a425499fadf
4
+ data.tar.gz: 8ce6b0dadf28e5d85a1116b486125b070e9d8cac
5
5
  SHA512:
6
- metadata.gz: e71a8d7aeaab8971a54f7cde359e22099807d63675b932bf9ab03755dd5f216421c1b4ef62cd50c807d3792773cc1c2eb15db6b49f766e6ac806b586d1f17029
7
- data.tar.gz: f8b14c2f71dfe8fa66bac1d9844ad11584d3ac5c6c97e2ff94f917ebaf7e741ec06fa9eecd51bf8fae337b7f2d33042246c4a7e45b6f811368043d27cb7a3247
6
+ metadata.gz: ae26b05af8455179d5534a2820479f99d0037bd3828e733d523639ecbbf35e9d3201011ab20d0aa7bc96f7b4e41b234ddb07f8b883fd81c6ee265caefb01b8d9
7
+ data.tar.gz: '0115447091c3ec399b4da301c0d4ef5c5ddbb6566f805538873c5463f831876a246f7eb09a84deb38538c47fd54274c6b063241f88b2b5238c9d47f6e5279f76'
@@ -17,6 +17,7 @@ module GitHubPages
17
17
  "plugins" => GitHubPages::Plugins::DEFAULT_PLUGINS,
18
18
  "future" => true,
19
19
  "theme" => "jekyll-theme-primer",
20
+ "markdown" => "kramdown",
20
21
  "kramdown" => {
21
22
  "input" => "GFM",
22
23
  "hard_wrap" => false,
@@ -47,7 +48,6 @@ module GitHubPages
47
48
  "plugins_dir" => SecureRandom.hex,
48
49
  "whitelist" => GitHubPages::Plugins::PLUGIN_WHITELIST,
49
50
  "highlighter" => "rouge",
50
- "markdown" => "kramdown",
51
51
  "kramdown" => {
52
52
  "template" => "",
53
53
  "math_engine" => "mathjax",
@@ -103,6 +103,8 @@ 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)
107
+
106
108
  # Ensure we have those gems we want.
107
109
  config["plugins"] = Array(config["plugins"]) | DEFAULT_PLUGINS
108
110
 
@@ -117,6 +119,13 @@ module GitHubPages
117
119
  config
118
120
  end
119
121
 
122
+ # Ensure we're using Kramdown or CommonMarkGhPages. Force to Kramdown if
123
+ # neither of these.
124
+ def restrict_markdown_processor(config)
125
+ config["markdown"] = "kramdown" unless \
126
+ %w(kramdown commonmarkghpages).include?(config["markdown"].to_s.downcase)
127
+ end
128
+
120
129
  # Set the site's configuration. Implemented as an `after_reset` hook.
121
130
  # Equivalent #set! function contains the code of interest. This function
122
131
  # guards against double-processing via the value in #processed.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitHubPages
4
- VERSION = 168
4
+ VERSION = 169
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: '168'
4
+ version: '169'
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-06 00:00:00.000000000 Z
11
+ date: 2017-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll