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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2528b1d197eb75a93b05183c1e88fab1c0e69868540d99fb9ad51fd4ff1026c4
4
- data.tar.gz: f7a7f920e797c523fdaf411265e980ed2eeb9ba310dd8686007fc570ea8b2e73
3
+ metadata.gz: 84973ca273559f8820dcbaeebd7a0063fea813995591990bd7a65541a3065342
4
+ data.tar.gz: 895b71c42a24135c5b24f047f357ecfb1a4de1d7e3efbaf489c06b7c7b665eed
5
5
  SHA512:
6
- metadata.gz: 570686fa33665ba46b8803e1616860497fa6a65c24c7bbe71b4146ab7372e9a36bb4d5e5fbcaeacaf4219505f902e163598491e88caf48f60acd32ec2fbec0ab
7
- data.tar.gz: 74b9980662fcd006d89c425693459cfa465b0ac9d848f6e2de6c0c8ef044bd2afc180a6d6d60e5428588771cc110124b3a215d4e5b5a56bfcc7c3909e857960e
6
+ metadata.gz: 744eaf673bc6868d7ec277483e572ae0548ff3538ddf9b622f3144724c036bb07f5bb6ff42831c3e3a61c2a57e8ee9d5b6d1929442a16bf6e713b0e704d35986
7
+ data.tar.gz: 71637825b3da4ef1c4e064cccc9aac0afd83d422e77f9bcb2f78a4beb5241d38b285052b1986c54191dfd98d8f90c1eadf1bc68628487cccd03286def4e6653a
@@ -3,8 +3,6 @@ cache: bundler
3
3
  rvm:
4
4
  - 2.4
5
5
  - 2.3
6
- - 2.2
7
- - 2.1
8
6
  git:
9
7
  depth: 1
10
8
 
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", "tables"]
34
+ extensions: ["strikethrough", "autolink", "table", "tagfilter"]
35
35
  ```
@@ -12,7 +12,6 @@ environment:
12
12
  - RUBY_FOLDER_VER: "24-x64"
13
13
  - RUBY_FOLDER_VER: "23"
14
14
  - RUBY_FOLDER_VER: "22"
15
- - RUBY_FOLDER_VER: "21"
16
15
 
17
16
  test_script:
18
17
  - ruby --version
@@ -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.5"
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", "~> 2"
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
- parse_options = (Set.new(@options) & CommonMarker::Config::Parse.keys).to_a
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")
@@ -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” &lt;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>} }
30
+ it { is_expected.to match %r{<h3 id="[^"]*">“Hi” &lt;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.5
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: 2018-02-12 00:00:00.000000000 Z
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: '2'
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.3
127
+ rubygems_version: 2.7.6
136
128
  signing_key:
137
129
  specification_version: 4
138
130
  summary: CommonMark generator for Jekyll