jekyll-commonmark-ghpages 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/README.md +1 -1
- data/appveyor.yml +0 -1
- data/jekyll-commonmark-ghpages.gemspec +3 -4
- data/lib/jekyll-commonmark-ghpages.rb +2 -6
- data/spec/test_spec.rb +1 -1
- metadata +15 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84973ca273559f8820dcbaeebd7a0063fea813995591990bd7a65541a3065342
|
4
|
+
data.tar.gz: 895b71c42a24135c5b24f047f357ecfb1a4de1d7e3efbaf489c06b7c7b665eed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 744eaf673bc6868d7ec277483e572ae0548ff3538ddf9b622f3144724c036bb07f5bb6ff42831c3e3a61c2a57e8ee9d5b6d1929442a16bf6e713b0e704d35986
|
7
|
+
data.tar.gz: 71637825b3da4ef1c4e064cccc9aac0afd83d422e77f9bcb2f78a4beb5241d38b285052b1986c54191dfd98d8f90c1eadf1bc68628487cccd03286def4e6653a
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -31,5 +31,5 @@ To specify extensions and options for use in converting Markdown to HTML, supply
|
|
31
31
|
```yaml
|
32
32
|
commonmark:
|
33
33
|
options: ["SMART", "FOOTNOTES"]
|
34
|
-
extensions: ["strikethrough", "autolink", "
|
34
|
+
extensions: ["strikethrough", "autolink", "table", "tagfilter"]
|
35
35
|
```
|
data/appveyor.yml
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "jekyll-commonmark-ghpages"
|
5
5
|
spec.summary = "CommonMark generator for Jekyll"
|
6
|
-
spec.version = "0.1.
|
6
|
+
spec.version = "0.1.6"
|
7
7
|
spec.authors = ["Ashe Connor"]
|
8
8
|
spec.email = "kivikakk@github.com"
|
9
9
|
spec.homepage = "https://github.com/github/jekyll-commonmark-ghpages"
|
@@ -14,11 +14,10 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
15
15
|
spec.require_paths = ["lib"]
|
16
16
|
|
17
|
-
spec.add_runtime_dependency "jekyll-commonmark", "~> 1"
|
17
|
+
spec.add_runtime_dependency "jekyll-commonmark", "~> 1.2"
|
18
18
|
spec.add_runtime_dependency "commonmarker", "~> 0.17.6"
|
19
|
-
spec.add_runtime_dependency "rouge", "
|
19
|
+
spec.add_runtime_dependency "rouge", ">= 2.0", "< 4.0"
|
20
20
|
|
21
21
|
spec.add_development_dependency "rspec", "~> 3.0"
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.6"
|
24
23
|
end
|
@@ -81,13 +81,9 @@ class Jekyll::Converters::Markdown
|
|
81
81
|
# final document.
|
82
82
|
class CommonMarkGhPages < CommonMark
|
83
83
|
def convert(content)
|
84
|
-
|
85
|
-
render_options = (Set.new(@options) & CommonMarker::Config::Render.keys).to_a
|
86
|
-
parse_options = :DEFAULT if parse_options.empty?
|
87
|
-
render_options = :DEFAULT if render_options.empty?
|
88
|
-
doc = CommonMarker.render_doc(content, parse_options, @extensions)
|
84
|
+
doc = CommonMarker.render_doc(content, @parse_options, @extensions)
|
89
85
|
html = JekyllCommonMarkCustomRenderer.new(
|
90
|
-
:options => render_options,
|
86
|
+
:options => @render_options,
|
91
87
|
:extensions => @extensions
|
92
88
|
).render(doc)
|
93
89
|
html.gsub(/<br data-jekyll-commonmark-ghpages>/, "\n")
|
data/spec/test_spec.rb
CHANGED
@@ -27,7 +27,7 @@ describe Jekyll::Converters::Markdown::CommonMarkGhPages do
|
|
27
27
|
}
|
28
28
|
subject { converter.convert("### \"Hi\" <xmp>[^nb]\n\n[^nb]: Yes.\n") }
|
29
29
|
|
30
|
-
it { is_expected.to match %r{<h3 id="[^"]*">“Hi” <xmp><sup[^>]*><a href="#fn1"[^>]
|
30
|
+
it { is_expected.to match %r{<h3 id="[^"]*">“Hi” <xmp><sup[^>]*><a href="#fn1"[^>]*>1</a></sup></h3>\n<section class="footnotes">\n<ol>\n<li id="fn1">\n<p>Yes. <a href="#fnref1".*</a></p>} }
|
31
31
|
end
|
32
32
|
|
33
33
|
describe Jekyll::Renderer do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-commonmark-ghpages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashe Connor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll-commonmark
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1'
|
19
|
+
version: '1.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1'
|
26
|
+
version: '1.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: commonmarker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +42,22 @@ dependencies:
|
|
42
42
|
name: rouge
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.0'
|
48
|
+
- - "<"
|
46
49
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
50
|
+
version: '4.0'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2'
|
57
|
+
version: '2.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '4.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rspec
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +86,6 @@ dependencies:
|
|
80
86
|
- - ">="
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: bundler
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.6'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.6'
|
97
89
|
description:
|
98
90
|
email: kivikakk@github.com
|
99
91
|
executables: []
|
@@ -132,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
124
|
version: '0'
|
133
125
|
requirements: []
|
134
126
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.7.
|
127
|
+
rubygems_version: 2.7.6
|
136
128
|
signing_key:
|
137
129
|
specification_version: 4
|
138
130
|
summary: CommonMark generator for Jekyll
|