jekyll 3.8.7 → 3.9.0
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 +4 -4
- data/lib/jekyll/commands/new.rb +4 -0
- data/lib/jekyll/configuration.rb +1 -0
- data/lib/jekyll/converters/markdown/kramdown_parser.rb +21 -0
- data/lib/jekyll/version.rb +1 -1
- metadata +26 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f4e46968c9e837f386ed0270702c2cb5213f98c9a640d8e05c02c7334cddf8c
|
4
|
+
data.tar.gz: e17ea3832fb902e2a9381552faefc058008f6b4d5a1c9c7ac5db106a998f2c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73ce537acd31edb94a7a80d496d60578d9e4e5887de5b4200c17c8470819066216db8934bae7e2f83648f557da45d78763d34bc59a3be859d96b16a14983a509
|
7
|
+
data.tar.gz: 6163c4524ac843e8eb5bc4bcd0725ff3fcf43495888a9ea91afc16d5686d309b524081c4b28b74c7ff5319ba06c8f1c70a4dd94b48ab978b08a0923cac773dd9
|
data/lib/jekyll/commands/new.rb
CHANGED
@@ -97,6 +97,10 @@ end
|
|
97
97
|
# Performance-booster for watching directories on Windows
|
98
98
|
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?
|
99
99
|
|
100
|
+
# kramdown v2 ships without the gfm parser by default. If you're using
|
101
|
+
# kramdown v1, comment out this line.
|
102
|
+
gem "kramdown-parser-gfm"
|
103
|
+
|
100
104
|
RUBY
|
101
105
|
end
|
102
106
|
|
data/lib/jekyll/configuration.rb
CHANGED
@@ -18,6 +18,7 @@ module Jekyll
|
|
18
18
|
@config = config["kramdown"] || {}
|
19
19
|
@highlighter = nil
|
20
20
|
setup
|
21
|
+
load_dependencies
|
21
22
|
end
|
22
23
|
|
23
24
|
# Setup and normalize the configuration:
|
@@ -30,6 +31,8 @@ module Jekyll
|
|
30
31
|
def setup
|
31
32
|
@config["syntax_highlighter"] ||= highlighter
|
32
33
|
@config["syntax_highlighter_opts"] ||= {}
|
34
|
+
@config["syntax_highlighter_opts"]["default_lang"] ||= "plaintext"
|
35
|
+
@config["syntax_highlighter_opts"]["guess_lang"] = @config["guess_lang"]
|
33
36
|
@config["coderay"] ||= {} # XXX: Legacy.
|
34
37
|
modernize_coderay_config
|
35
38
|
make_accessible
|
@@ -47,6 +50,24 @@ module Jekyll
|
|
47
50
|
end
|
48
51
|
|
49
52
|
private
|
53
|
+
|
54
|
+
def load_dependencies
|
55
|
+
return if Kramdown::VERSION.to_i < 2
|
56
|
+
if @config["input"] == "GFM"
|
57
|
+
Jekyll::External.require_with_graceful_fail("kramdown-parser-gfm")
|
58
|
+
end
|
59
|
+
|
60
|
+
if highlighter == "coderay"
|
61
|
+
Jekyll::External.require_with_graceful_fail("kramdown-syntax-coderay")
|
62
|
+
end
|
63
|
+
|
64
|
+
# `mathjax` emgine is bundled within kramdown-2.x and will be handled by
|
65
|
+
# kramdown itself.
|
66
|
+
if (math_engine = @config["math_engine"]) && math_engine != "mathjax"
|
67
|
+
Jekyll::External.require_with_graceful_fail("kramdown-math-#{math_engine}")
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
50
71
|
def make_accessible(hash = @config)
|
51
72
|
hash.keys.each do |key|
|
52
73
|
hash[key.to_sym] = hash[key]
|
data/lib/jekyll/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05
|
11
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '2.0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: kramdown
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.14'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.14'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: liquid
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,6 +170,26 @@ dependencies:
|
|
184
170
|
- - "~>"
|
185
171
|
- !ruby/object:Gem::Version
|
186
172
|
version: '1.0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: kramdown
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '1.17'
|
180
|
+
- - "<"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '3'
|
183
|
+
type: :runtime
|
184
|
+
prerelease: false
|
185
|
+
version_requirements: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '1.17'
|
190
|
+
- - "<"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '3'
|
187
193
|
description: Jekyll is a simple, blog aware, static site generator.
|
188
194
|
email: tom@mojombo.com
|
189
195
|
executables:
|
@@ -311,7 +317,7 @@ homepage: https://github.com/jekyll/jekyll
|
|
311
317
|
licenses:
|
312
318
|
- MIT
|
313
319
|
metadata: {}
|
314
|
-
post_install_message:
|
320
|
+
post_install_message:
|
315
321
|
rdoc_options:
|
316
322
|
- "--charset=UTF-8"
|
317
323
|
require_paths:
|
@@ -327,8 +333,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
327
333
|
- !ruby/object:Gem::Version
|
328
334
|
version: '0'
|
329
335
|
requirements: []
|
330
|
-
rubygems_version: 3.
|
331
|
-
signing_key:
|
336
|
+
rubygems_version: 3.0.3
|
337
|
+
signing_key:
|
332
338
|
specification_version: 2
|
333
339
|
summary: A simple, blog aware, static site generator.
|
334
340
|
test_files: []
|